Author: Jean MAURICE
Posted: 2015-03-01 at 15:23:45
Hi Joe,
you can use ADBOBJECT() to get all the tables of a database in an array as in
the example given in the help :
* Open sample testdata database
OPEN DATABASE (HOME(2) + 'Data\testdata')
* Function call with cSetting for table names
=ADBOBJECTS(gaTables, "TABLE")
* Displays array gaTables created by ADBOBJECTS( ) function
DISPLAY MEMORY LIKE gaTables
In fact, ADBOBJECT will give you the number of element found :
lnnbtable = ADBOBJECT(gatables, "TABLE")
FOR lnindice = 1 TO m.lnnbtables
USE (gatables(m.lnindice,1))
? gatables(m.lnindice,1)+ STR(RECCOUNT(),8)
USE
NEXT
The Foxil
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/54F38361.8000500@wanadoo.fr
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.