>Hi,
>
>I am getting hung up on referencing an open, modeless form from another routine.
>the SCX name is DUTYINFO.SCX and the form Name is frmDUTYINFO.
>I get the error "Object does not exist" when I try to reference it as DUTYINFO or frmDUTYINFO. wexist('frmDUTYINFO') returns .T.
>
>What am I doing wrong?
>
>TIA
Ashley --
You have the name of the form, not the object reference to it.
To get the object reference, use the _SCREEN.Forms array of active form objects. Cycle thru with:
loForm = .NULL.
FOR X = 1 TO ALEN (_SCREEN.Forms, 1)
IF UPPER (_SCREEN.Forms[X].Name) = "FRMDUTYINFO"
loForm = _SCREEN.Forms[X]
EXIT
ENDIF
ENDFOR
IF NOT ISNULL (loForm)
...
ENDIF
Jay