Print Page | Close Window

Does PagedRdbQuery always throw ArgumentOutOfRangeException when the query returns zero rows?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=799
Printed Date: 19-Sep-2025 at 8:33pm


Topic: Does PagedRdbQuery always throw ArgumentOutOfRangeException when the query returns zero rows?
Posted By: pnschofield
Subject: Does PagedRdbQuery always throw ArgumentOutOfRangeException when the query returns zero rows?
Date Posted: 05-May-2008 at 11:48am
I just started using the PagedRdbQuery class, and in cases where the pRdbQuery passed into the constructor would be returning zero rows, the PagedRdbQuery will throw an ArgumentOutOfRangeException when I execute it.  Do I need to just catch ArgumentOutOfRangeExceptions, or are there any guidelines I can follow to prevent the error from being thrown?

Paul



Replies:
Posted By: pkarsh
Date Posted: 05-May-2008 at 3:28pm
A PagedRdbQuery that returns 0 rows should not in and of itself cause an ArgumentOutOfRange exception when the query is executed.



Print Page | Close Window