Mark,
The NAME clause in the DO FORM statement creates an object reference. You cannot store an object reference in a field. However, you can get an object reference to the form by searching for the forms Name property (or any property) in the _SCREEN.Forms[] array.
HTH!
Mark
>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?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.