Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop
Message
De
04/12/2000 06:03:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/12/2000 05:48:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Loop
Divers
Thread ID:
00448715
Message ID:
00448720
Vues:
11
>Hi I run these lines of code and the result to the ?len is 90, instead of 179..
>Any Ideas?
>
>Thanks,
>Gadi
>
>> endrec ='9'
>> for i=1 to 178
>> endrec =endrec +"9"
>> i=i+1
>> endfor
>> ?len(endrec )

Gad,
Endfor implicitly increments i. Remove i=i+1. Otherwise it's like saying:
do while i<=178
i=i+2
enddo

Or :
for i=1 to 178 step 2
endrec =endrec +"9"
endfor

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform