Julie,
I am not certain from your post why you need a full hierarcy path to an object on the form, but the process is fairly simple.
SYS( 1272 ) will return the full hierarchy path to an object on a form as a string.
The syntax is lcPath = SYS( 1272, oObject ) where oObject is the reference to the object for which a full path is wanted.
To make the full path name more useful in addressing objects, however, you need to replace the name of the form with "thisform".
My code for this purpose, which I generally add to the Init() of a control, is as follows:
LOCAL lcFullPathName
lcFullPathName = LOWER( SYS( 1272, this ) )
lcFullPathName = STRTRAN( lcFullPathName, thisform.Name + ".", "thisform.", 1, 1 )
this.AddProperty( "FullPathName", lcFullPathName )
RETURN
If you do this, all of the objects on your form will know their own full hierarchy path.
Hope this answers your question.
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.