I'm using the sys(1272) function to get the complete hierarchy of an object.
also to retrieve that objects form.
unfortunatally this results only a form name as a characterstring
and not as an object reference.
So my question is .
how can I easily retrieve a form object reference.
this is the code to retrieve the forms name
csys_ = Sys(1272,oSource) &&complete form hierarchy
csys_ = Upper(Substr(csys_,1,At(".",csys_,1)-1)) &&only form.name
I'm using this a lot with drag&drop operations.
and would like something to enhance the code like this :
osys_= makeobjectreference(csys_)
With osys_
...
EndWith
In the past I was creating an array of each opened form
and scanned that array for the name but that's a bit confusing and overhead
for this simple task
thanks in advance
regards
Christophe