Mark,
The NAME FRMENTRY creates a memvar named FRMENTRY, it holds a reference to the form object. Your form's .Name property is set to ENTRY you can make it whatever you want from the property sheet. The form object has no idea what memvar points to it, so there is no way knows about FRMENTRY unless you scan the memvars looking for object references.
You need to simply scan the _screen.Forms[] collection to find the form:
for i = 1 to _screen.FormCount
? _screen.Forms[i].Name
endfor
>When I execute the statement:
>DO FORM ENTRY NAME FRMENTRY
>
>and then later try to set a variable to the active form's name:
>lcActiveForm = _screen.activeform.name
>
>lcActiveForm = 'ENTRY' instead of 'FRMENTRY' !!!!
>
>ENTRY is not an object, FRMENTRY is though.
>
>I need a function that returns 'FRMENTRY' instead so I can execute a statement like the one below that addresses the form object:
>
>&lcActiveform..showtips = .T.
>
>If the form is active I can do:
>_screen.activeform.showtips = .T.
>
>but I am storing the form objects name in charactor field in a table and need to be able to reference it without the form being the active form.
>
>Any ideas?