Hi Bret, Tom,
You can also EVALUATE()
EVALUATE("ThisForm.pgfChoices.Page1." + m.ObjectName + ".Valid()")
which returns the result of Valid(), if relevant.
>>So I want to reference a page in a pageframe using a variable...
>>
>>I have:
>>name = my table.pagename
>>
>>thisform.pageframe1.?name?.caption = ''
>>
>>or something- How do I input the name in the field of my table into an object reference?
>>
>>Thanks
>>Tom Welch
>
>From my code, hope it helps you
>
>
> lcCommand = 'ThisForm.C40pgGlobalQuery.PAGE'+ALLTRIM(THISFORM.cPageDodic)+'.SETFOCUS()'
> &lcCommand
Charlie