Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referring to a field in the view that feeds a form
Message
De
21/04/2000 19:05:22
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00362129
Message ID:
00362405
Vues:
16
>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform