I have a form that is loaded at runtime via NEWOBJECT().
In its init() I load a data object via NEWOBJECT() and store a reference to that data object in a form method named oDataLib. I also do the following in the Init.
THISFORM.cCurrentUserId = oAppLib.mGetUserId()
SELECT rqst_ord
SET FILTER TO user_id = THISFORM.cCurrentUserId
LOCATE
On the form is a VCR button for Go Top. In the click event I call:
THISFORM.oDataLib.mGoTop()
Inside of this method is the commmand: LOCATE
When this command is hit at runtime I receive an error "Object is not contained in a FORM".
If I move the code out of the oDataLib.mGoTop() and put it directly inside of the command button the code runs fine.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.
Riddley Walker