Announcement
Collapse
No announcement yet.
Testing for d.totrec to be true
Collapse
X
-
Hmm I just realized that alias.d.totrec will always be true once the DB is opened. (lol duh). I suppose the only way to do this would be to set a "counting" variable for the while loop and then test it to be EQ to the value of alias.d.totrec. Which would be fine if was not already using mvfilter to hide some records from the loop. Ugh.
-
Testing for d.totrec to be true
Hi all,
Working on this now with no luck. I know for example you can mveval alias.d.totrec to get the record count. And the docs state that for example mvgo to alias.d.totrec actually moves the record pointer to that last row. Which implies that while you are in a mvwhile loop (say while NOT alias.d.eof) - that when the loop is on the last row, there is a variable that can be read to see if that is true. So to see if you are not on that last row I assume the snytax is something like <mvif expr="{NOT alias.d.totrec}">blah blah</mvif>. So what would it be to test if it is true then? Something like <mvif expr="{YEP alias.d.totrec}">blah blah</mvif>. Lol ..Tags: None
Leave a comment: