Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I set the property of a button from a procedure?
Message
From
16/04/1998 11:55:12
 
 
To
16/04/1998 11:47:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092543
Message ID:
00092560
Views:
29
>>>>>>How can I set the property of a button from a procedure?
>>>>>>From a menu option and in a procedure file, I want to enable
>>>>>>a button on my form. any ideas?
>>>>>
>>>>>As long as you keep reference to a form, you can use this reference:
>>>>>oApp.frm1.cmdButton.enabled=.t.
>>>>---
>>>>OK - we said you could createobject for a class and reference a method
>>>>from that class, but we did not say anything about creatobject with a FORM
>>>>and reference objects on that from? can I :
>>>>omy_form = createobject("myform") and then
>>>>omy_form.cmdbutton.enabled - .t. ????
>>>>can I do this? and it this the way it is done?
>>>
>>>Yes, you should link form object to variable or much better to app object property:
>>>oApp.Frm1=createobject("class1")
>>>or
>>>DO FORM frm1 name oApp.frm1 linked
>>---
>>Not to sure about: oApp.Frm1=createobject("class1")... should this be...
>>oApp.Frm1=createobject("my_form")... why did you use CLASS1?
>
>that's because i am 2000 miles from you and don't see what are real names of classes you are using :).
---
What I meant was...I thougt you were using creatobject for a CLASS and not a
FORM - hence: oApp.Frm1=createobject("my_form [A FORM]") instead of:
oApp.Frm1=createobject("class1 [A CLASS]")... You see the difference? You are
also 2000 light years ahead of me at this point. :))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform