Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for form1.office1.value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049027
Message ID:
00049125
Vues:
51
>>>>>>>>I am trying to evaluate the expression "form1.office1.value" but the error "Object form1 is not found" results. the form I created is subclassed but still is called 'Form1'.

>If you've left in the "Form1" as the name and you have another form open that has the "Form1" name, then you could be referencing the wrong form. Try giving each form a unique name or at least a unique variable in the DO FORM command.
>
>Steve

Let me rehash as this is bugging me:
I've created a form w/filename called binput.scx. On it is a textbox called office1 which a user will fill in. The caption I have named query1. I have a test.prg which reads:
do form binput
? query1.office1.value
and the result is "QUERY1 is not an object.
I've even tried "DO Form binput Name query1 LINKED" and same result
:-(
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform