Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO .... up to current record?
Message
From
11/03/2005 13:06:58
 
 
To
11/03/2005 13:03:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00994688
Message ID:
00994956
Views:
24
Aye but FOR doesn't care, not so? KMe off home now.

>Since the table is sorted, one must use WHILE, which works up to (but not including) the current record.
>
>>>>Sergey's suggestion (in an earlier message) looked like this:
>>>>
lnRecno = RECNO()
>>>>GO TOP
>>>>COPY TO ... WHILE RECNO() <> lnRecno
>>>>
>>>>and this works just fine, other than missing the current record. I can correct for this by doing a SKIP first.
>>>
>>>Simpler... .
>>
>>I would have thought "FOR recno()<=lnRecno" ???
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform