Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I shorten code this?
Message
From
07/01/2000 15:55:18
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00314481
Message ID:
00314727
Views:
20
Thanks for correcting me, I forgot about checking the type of the field :(

The count of fields is finite, but since I want to stop as soon as I find a "Y", I prefer the DO WHILE loop option because I'm allergic to EXIT in a loop.
>Danger Will Robinson! You've gone and assumed that all fields are a character type...at least check TYPE(laStruct[lnI,1]) to make sure it's "C"
>
>Also, since the count of fields is finite, I'd probably use a FOR...NEXT loop.
Previous
Reply
Map
View

Click here to load this message in the networking platform