Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Within an Object???
Message
De
24/01/2001 19:05:10
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Object Within an Object???
Divers
Thread ID:
00468280
Message ID:
00468280
Vues:
45
I really need some guidance. I have just recently begun creating
custom objects. I thought I could create a custom object that
itself contains several custom objects.

Background:
In the Watch Window oLkUpFormObj.oCol1 appears as an object and
nicely displays its various properties.
However, I have been unable to access properties such as
oLkUpFormObj.oCol1.BaseClass using the following syntax from
1) My program code
2) Command Window or
3) Watch Window (oLkUpFormObj.oCol1.BaseClass)

Question:
Given that the Watch Window nicely displays the properties
I'm confused. Please see the lines with comment && <----------

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
oCol1 = createobject( "GrdCols" )
oCol1.ColSource = "Group.GroupName" && ControlSource
ENDDEFINE


DEFINE CLASS "GrdCols" AS Custom
ColSource = ""
ENDDEFINE
***********************************

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform