Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD25: SCAN WHILE fails SCAN FOR doesn't
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00614777
Message ID:
00616422
Views:
29
Thanks Thomas, It's good to hear (though saddening that it has happened) that somebody also has a similar problem with SCAN WHILE

>From my FoxPro 2.X days, I recall that we would never use Scan While as it was not stable, or predictable. Scan For would be my choice. Scan While "would do something but you could not be sure of the results".
>
>Tom
>
>
>>Hi all
>>
>>I have a function skel like below:
>>
>>
>>FUNCTION myFunc
>>
>>	PARAMETERS myID
>>
>>	SELECT myDBF
>>	SET ORDER TO TAG myField
>>
>>	= SEEK(myID)
>>
>>	SCAN WHILE myDBF.myField = myID
>>		SELECT myOtherDBF
>>		*** myOtherDBF manipulation logic goes here
>>
>>		SELECT myDBF
>>		DELETE
>>	ENDSCAN
>>
>>
>>This fails, what am I doing wrong. Just change the WHILE to FOR, though slower will never fail.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform