Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to access the parent form property in child form obj
Message
De
05/06/2014 04:53:31
 
 
À
05/06/2014 04:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01601319
Message ID:
01601340
Vues:
26
>>>>>technical answer is because in .init () you used LPARAMETER and not PARAMETER
>>>>
>>>>Are you sure about that ?
>>>
>>>if it is still on the stack, certainly, otherwise why would the OP assume it to be available in the button...
>>>
>>
>>I don't think so, Thomas
>>
>>Parameter makes it a private variable, that goes out of scope when the form's init() returns. The button.Click happens after that
>>
>
>you are right, I did not read slow enough - he wrote about manual clicking, where I fast read button.click() and assumed it to be called from the .init(). Going without coffee has side effects ;-)


Never mind :-)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform