Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax for form1.office1.value
Message
De
09/09/1997 18:16:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049027
Message ID:
00049236
Vues:
40
Timothy,

I see your problem "description" has changed a little - to clarify things, I suppose.

Now you say the Caption is named Query1, and " ?Query1.office.value " yields an error.

1) It looks to me that what you call "caption" is actually a Label object. Is that correst?
- If so, then I don't see a Value property for a Label, so that might be the answer.

2) If Caption is *not* a label object, then how did you give it a name? *IF* you mean that the caption **CONTAINS** the string query1, then that is your problem - query1 does *not* belong in the identifier - Office.Value will do the trick (or ThisForm.Office.Value).

good luck,
Jim N

is >>>>>>>>>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
> :-(
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform