Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Within an Object???
Message
De
25/01/2001 01:13:42
 
 
À
24/01/2001 19:05:10
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00468280
Message ID:
00468343
Vues:
13
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform