Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LOOP IN 'FOR.. ENDFOR' problem
Message
De
27/10/2004 10:53:31
 
 
À
27/10/2004 10:21:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00954844
Message ID:
00954879
Vues:
17
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform