Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOOP IN 'FOR.. ENDFOR' problem
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00954844
Message ID:
00954879
Views:
16
Terry,

I see no relevance to that thread. Loosing the LOOP statement was just a side effect of making code readable.

>
>Got rid of LOOP in a For ... Next. Chalk up 1 for the supporters of thread "Argument starter - The roots of all evil" :-)
>

>
>>I would rearange code as follows and try.
select mytable
>>for i=1 to 10
>>	DO CASE
>>	CASE NOT seek(i,'mytable','id')
>>		messagebox('ID '+allt(str(i))+' Not Found!',0+16)
>>	CASE mytable.status='C'
>>		messagebox('The operation will ignore from tube ID '+allt(str(i)))
>>	OTHERWISE
>>		insert into mycursor value(i)
>>	ENDCASE
>>endfor
>>
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform