Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong with my PasteRec() code uses GATHER NAME
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01107350
Message ID:
01107417
Views:
20
>Hi all
>
>I have created PasteRec() method in my BO as below:
>
LOCAL loLastRecord, lcExcept
>
>lcExcept = THIS.cPasteExcept
>
>SELECT (THIS.cAlias)
>
>loLastRecord = THIS.oLastRecord
>
>GATHER NAME loLastRecord FIELDS EXCEPT &lcExpect
>
>loLastRecord = .NULL.
>
>THIS.cPasteExcept = iID,iPID,iEA3No
>
>When the above code is executed yet the three fields do get replaced with the values in THIS.oLastRecord blowing the primary key field iID and the serial no. field iEA3No.
>
>Please advise what did I do wrong.

Which record you're replacing? Are you sure you're sitting on the right place while doing replace? I don't see any append blank or insert in the code, so it's either done before or you're using the existing record...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform