Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOUND() not working with table buffering and scatter/gat
Message
 
To
01/03/2002 15:18:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00627159
Message ID:
00627195
Views:
16
>Hi Brian,
>
>Yes, that's what I intended to do. I just changed to program code, and it works. This is what I have now:
>
>select DispChek
>set order to dispchek
>do while .t.
> if seek(lcDispatchNumber+DspCkItm.driver+lcdrvnum,'Dispchek','dispchek')
> scatter memvar blank
> gather memvar
> else
> exit
> endif
>enddo
>
>
>
>This works! It replaced:
>
>select DispChek
>set order to dispchek
>do while .t.
> seek lcDispatchNumber+DspCkItm.driver+lcdrvnum
> if .not. found()
> exit
> endif
> scatter memvar blank
> gather memvar
>enddo
>
>Which didn't work. I stepped through the code in debug and verified that the record found was not correct, but the program proceeded as if it was.
>
>Larry

Larry;

Another flavor to get rid of the Do While
select DispChek		
set order to dispchek
seek(lcDispatchNumber+DspCkItm.driver+lcdrvnum,'Dispchek','dispchek')

If Found()
    scatter memvar blank
    gather memvar
Else
	* Punt code goes here
Enddo
Tom
Previous
Reply
Map
View

Click here to load this message in the networking platform