Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referring to a field in the view that feeds a form
Message
From
21/04/2000 19:05:22
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00362129
Message ID:
00362405
Views:
15
>I just tried in the click method of a "save" button, to add code like this:
>
>v_view.unlock_value = thisform.oCallingform.nUnlockVal
>
>It didn't work. I got errors.
>

Sorry for jumping in, but this is pretty common, well at least it was with me when I first started using VFP! You need to use the REPLACE command. As in:
REPLACE unlock_value WITH ThisForm.oCallingForm.nUnlockVal IN (v_view)

Just setting the view.fieldvalue = anothervalue doesn't work, (although intuitively you would think it would) as you found out!

Hope that helps!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform