Function GetCursor >* returns a cursor object from the dataenvironment of the given form and alias >LPARAMETER oFrm, ; && the form > cAlias && the alias we are looking for >LOCAL ARRAY a_Obj[1] >LOCAL cObj, oObj >* get array of object names in dataenvironment >AMEMBERS(a_Obj, m.oFrm.Dataenvironment, 2) >FOR EACH cObj IN a_Obj > oObj= EVALUATE("m.oFrm.Dataenvironment."+ m.cObj) > IF m.oObj.BaseClass = "Cursor" ; > AND UPPER(m.oObj.Alias) = UPPER(m.cAlias) > * found it > RETURN m.oObj > *<<<<<<<<<<< > ENDIF >ENDFOR >RETURN .NULL. >Why not use a parametized view and pass a parm to the form that is used by the view?