Also in 1.1
myreaderwriter.HasRows()
can test for rows without advancing the reader.
But Dean's code is best for what you are doing.
On 9/8/05, Dean Fiala <[EMAIL PROTECTED]> wrote:
> You're reading the next record every time you call .Read(). Simplify your
> logic to this...
>
> If myreaderwriter.Read() Then
>
> Page2.Fontsize = 12
>
> Page2.Textpos(xpos + (15 * dateforloop), ypos)
>
> Page2.Writetext(myreaderwriter(0))
>
>
> Else
>
> Page2.Fontsize = 12
>
> Page2.Textpos(xpos + (15 * dateforloop), ypos)
>
> Page2.Writetext("0")
>
> End If
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/