Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need assistance creating a Control control
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01040983
Message ID:
01042038
Views:
31
I just retested my code I sent him. Works fine. Sets the label's caption:

I created a Control class and dropped a label on it

I added a property called 'builder' and set it to MyBuilder.prg

I created the prg MyBuilder and added the following code:
LPARAMETERS oObject, cButton

cCaption = INPUTBOX("Enter a caption")

oObject.label1.Caption = cCaption

RETURN
>Mike,
>
>>Is this something to do with the fact that I'm using a Control control and not a Container control? Any ideas?
>
>It has everything to do with it. Nothing, but the class itself can see the internal objects of a Control subclass.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform