Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a FOR LOOP with reccount()
Message
From
09/09/1998 22:17:28
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00134627
Message ID:
00134885
Views:
10
>>The reccount() is not working.
>>Here is my code:
>>
>>i=1
>>for i=1 to reccount()
>> replace myfld with i
>> if !eof()
>> skip
>> endif
>>endfor
>>
>>What I want to do is change the value of myfld in all the records in the table. This FOR LOOP will not do that.
>>any ideas?
>
>Robert,
>
>Here are a couple of ways;
>
>REPLACE ALL MyFld WITH RECNO()
>
>or
>
>SCAN
> REPLACE MyFld WITH RECNO()
>ENDSCAN
------------------
Hey Jim,
Nice to hear from you again... thanks for your help.. :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform