Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Within an Object???
Message
From
25/01/2001 01:13:42
 
 
To
24/01/2001 19:05:10
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00468280
Message ID:
00468343
Views:
15
Createobject() is merely creating an object variable reference, not a member object, so it goes out of scope immediately.

You need to use ADD OBJECT (see the inserted and commented code below) in order to gain access to this object.

>Can anyone here set me straight??? Thanks!
>
>
>local	oLkUpFormObj
>oLkUpFormObj = createobject( "LkUpParams" )
>
>oLkUpFormObj.FormCaption = "Group.GroupName"	&& ControlSource
>? oLkUpFormObj.FormCaption
>
>set step on
>? oLkUpFormObj.oCol1.BaseClass	&& ? oLkUpFormObj.oCol1.ColSource	&& return		&& Main
>
>
>***********************************
>DEFINE CLASS "LkUpParams" AS	Custom
>	FormCaption = "Lookup:"
>	* Column objects

     add object oCol1 As grdcols
*     oCol1 = createobject( "GrdCols" )
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform