Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop
Message
From
04/12/2000 06:03:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
04/12/2000 05:48:09
Gad Hutt
Express Print
Herzliya, Israel
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Loop
Miscellaneous
Thread ID:
00448715
Message ID:
00448720
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform