Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read Tables from DBC
Message
From
29/11/1998 08:08:41
 
 
To
27/11/1998 08:07:29
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00161758
Message ID:
00162210
Views:
29
Rex,

Thanks for the tip as it did work with even less code as seen below. I also moved it to the Click() method.

LOCAL lnTableCnt
OPEN DATABASE (This.Value) SHARED
lnTableCnt = ADBOBJECTS(ThisForm.aTableList,"Table")
CLOSE DATABASE

IF lnTableCnt > 0
ThisForm.lstTables.RowSourceType = 5
ThisForm.lstTables.RowSource = "ThisForm.aTableList"
ELSE
ThisForm.lstTables.RowSourceType = 0
ThisForm.lstTables.RowSource = ""
ENDIF

>>Thanks for the info on ADBOBJECTS(), that however will not work in this situation. I ended up with the following in the interactivechange of the list box where I put a list of databases in the directory that was selected. The code seems to work ok.

BTW, ADBOBJECTS() DID work, as I chew on my humble pie... mmm, very tasty...

Let me see now how did that go ...

Read
Think
Reply

I should quit skipping the middle step...


Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform