Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing the forms caption to the class object(container)
Message
From
05/03/2003 16:14:46
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00761777
Message ID:
00761785
Views:
19
>I have a class object in the container (usercntl).

>i need to send the form name to the class objects usercntl - init event.

>when i am using strcaption = thisform.caption it is saying this form does'nt exist.

>how to get the forms caption in the usercntl class object.


You can pass the Form reference ...
oContainer = CREATEOBJECT("myCustom",Thisform)
oContainer.Process()

DEFINNE CLASS myContainer as Custom
   PROCEDURE INIT
   LPARAMETERS toForm
      This.AddProperty("oFormReference",toForm)
   ENDPROC
   PROCEDURE Process
       MESSAGEBOX(This.oFormReference.Caption)
   ENDPROC
ENDDEF
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform