Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with REPLACE
Message
From
06/02/2002 16:08:42
 
 
To
05/02/2002 17:32:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615778
Message ID:
00616280
Views:
23
>Hi, VFP7 user. I tried to run the following line of code. I placed wait windows before & after to debug. Here is what I get:
>
>WAIT WINDOW thisform.nextinv && returns 'S1123-4' (character string)
>REPLACE inv_hdr.invno WITH ThisForm.Nextinv && assigns invoice #
>WAIT WINDOW inv_hdr.invno && returns ''
>
>I am using buffered data. My values and fields are all character. What am I doing wrong (property value will not transfer to field)?


Make sure that:
- inv_hdr is not at EOF but at the record you want
- inv_hdr has not moved due to a set relation and is not at EOF (see above)
- you are in area inv_hdr with SELECT inv_hdr or REPLACE xxx IN inv_hdr

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform