Arthur Lewis
Programmer
cTableAlias does not work when a variable containing the table name is passed to SELECT cTableAlias or USED(cTableAlias)
This a very strange case. Table test.dbf is clearly open in the current datasession. If I run from the IDE
? USED('test.dbf') it returns .T.
However I when I do the following it fails.
PROCEDURE myUSED()
LOCAL lcTable as string
STORE 'test.dbf' TO lcTable
IF USED(lcTable)
This a very strange case. Table test.dbf is clearly open in the current datasession. If I run from the IDE
? USED('test.dbf') it returns .T.
However I when I do the following it fails.
PROCEDURE myUSED()
LOCAL lcTable as string
STORE 'test.dbf' TO lcTable
IF USED(lcTable)
RETURN .T.
ENDIF
** IT returns .F. when test.dbf is open in the current datasession.
Also when I do
SELECT (lcTable) is says alias does not exist...
HERE the actual code. Where the SELECT statement failed.
ENDIF
** IT returns .F. when test.dbf is open in the current datasession.
Also when I do
SELECT (lcTable) is says alias does not exist...
HERE the actual code. Where the SELECT statement failed.