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
***********************************