Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visible table=.t.
Message
From
01/05/2007 08:23:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/05/2007 03:20:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01221354
Message ID:
01221410
Views:
12
>hi all,
>
>i need help to let the table FOXUSER.DBF visible=.t. at my list
>as
>thisform.list1.(FOXUSER.dbf)visible=.t.
>
>nTablesCount=adir(thisform.aTables,"*.dbf")
>thisform.list1.RowSourceType = 5
>thisform.list1.RowSource = 'thisform.aTables'
>thisform.list1.Requery()
>thisform.list1.ListIndex = 1
>thisform.list1.refresh
>
>thanks.

After loading the array (adir()), and before setting the .RowSource, you can manipulate the array to eliminate tables you don't need. For instance, you might use adel() to erase a row from the array.

I would also recommend to keep your data tables in a separate directory (folder).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform