General information
Category:
Coding, syntax & commands
>I need to check to see if a table is a member of a DBC (or a free table)
>before using it. Is there a way to do this? I can't find anything.
>Thanks,
>Becky
Try this
FUNCTION IsTableInDatabase
LPARAMETERS tcTable,tcDatabase
SET DATABASE TO &tcDatabase.
LOCAL laDBArray[1]
=ADBOBJECTS(laDBArray,'Table')
RETURN ASCAN(laDBArray,UPPER(tcTable))#0
Marcel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only