Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND From FOR clause ignored in VFP6
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00697671
Message ID:
00697708
Views:
16
>Don't specify alias if you want VFP to check every record.
APPEND FROM utemp For (SubStr(Submitter,1,1)="E")
>
>>SELECT estate
>>zap
>>APPEND FROM utemp For (SubStr(utemp.Submitter,1,1)="E")
>>go bottom
>>wait window estate.submitter
>>
>>Why would I get all records from UTEMP? I specified 'E' as first letter of first field!
>>
>>TIA

So -
.snip from Jim Nelson.
APPEND FROM Source FOR Source.lArchive
the lArchive field is evaluated only for the current record of the source, not for each one in turn. So either all records or no records are copied.
.endsnip.
- the inclusion of a Source acts as 'constant logical' for the entire dataset based on the current record...
I don't know that I would ever need that!

thanx to all
Edgar L. Bolton, B.S. B.B.A.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform