Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to retrieve tables name ?
Message
De
18/05/2001 10:25:08
 
 
À
18/05/2001 05:04:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00508583
Message ID:
00508701
Vues:
21
>Hi,
> Do you know how to put all the table name into the combo box ?
> Because after use adbobject(), the tables name will store in an array right, but how to put all of the table name into the combo to let user select ?
> Thank you
>
>regard,
>kengwen

You could create a combobox class for this

Add 2 properties to it:

aTableArray(1,1)
cDatabaseName


In the Init, do
With this
  If !Empty(.cDatabaseName) And DBUsed(.cDatabaseName)
    Set Database To (.cDatabaseName)
    ADBObjects(.aTableArray, "Table")
    ASort(.aTableArray)
    .RowSourceType = 5
    .RowSource = "this.aTableArray"
  EndIf
EndWith
At design time, after you've dropped this control on a form, set the cDatabaseName property to the name of the database you want to use.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform