* _getexpr points to this little .prg, save it lcSaveGetEx=_getexpr * set it to point to default VFP expression builder _getexpr="" getexpr to lcTemp * clean the current alias from the expression, keep other aliases lcTemp=strtran(lcTemp, alias()+".", "",-1, -1, 1) * restore for next call _getexpr=lcSaveGetEx return lcTempI've written a few little prgs like this, and in some cases the purpose was to see the dataenvironment while editing a report. The trick was to set the datasession before the GETEXPR command, and to restore it afterwards, so the expression builder would see all the tables. I used to store it in a custom property of _screen, as soon as I had all the cursors ready, Set Datasession to _screen.nds, GETEXPR, Set Datasession to nSaveDS. Worked perfectly.