I was wondering if someone could explain how 'for each while' actually works.
I found some code written by Tom Bascon that suggested using for each _lock no-lock while _lock-usr <> ?:
how exactly does using while differ from using where?
I tried the following code for each _trans no-lock while _Trans-Usrnum <> ?: and it returned no results, however replacing while with where did produce results.
I'm planning on reading the _lock table so I'd like to do as Tom advises but I'd also like to be sure that I'm not missing some records.
Thanks,
Rich
I found some code written by Tom Bascon that suggested using for each _lock no-lock while _lock-usr <> ?:
how exactly does using while differ from using where?
I tried the following code for each _trans no-lock while _Trans-Usrnum <> ?: and it returned no results, however replacing while with where did produce results.
I'm planning on reading the _lock table so I'd like to do as Tom advises but I'd also like to be sure that I'm not missing some records.
Thanks,
Rich