>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"
>? oLkUpFormObj.FormCaption
>
>set step on
>? oLkUpFormObj.oCol1.BaseClass
>? oLkUpFormObj.oCol1.ColSource
>return
>
>
>***********************************
>DEFINE CLASS "LkUpParams" AS Custom
> FormCaption = "Lookup:"
> * Column objects
> oCol1 = createobject( "GrdCols" )
> oCol1.ColSource = "Group.GroupName"
>ENDDEFINE
>
>
>DEFINE CLASS "GrdCols" AS Custom
> ColSource = ""
>ENDDEFINE
>***********************************
><PRE/>
A column object can only exist within a grid, so you'd need to reference it something like<pre>? oLkUpFormObj.<b>GridName</b>.oCol1.BaseClass etc.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up