Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting free tables to DBC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01000246
Message ID:
01000257
Vues:
13
Try:
cd path_where_dbfs_are
CREATE DATABASE MyData

numb_of_dbfs = ADIR(allDBF, "*.DBF")
FOR i = 1 TO m.numb_of_dbfs
    dbf_name = JUSTSTEM(allDBF[i,1])
    USE (dbf_name)
    IF EMPTY(CURSORGETPROP("DataBase", dbf_name)) && To see if this table is FREE
       SET DATABASE TO MyData
       ADD TABLE (dbf_name)
    ENDIF
    USE IN SELECT(dbf_name)
NEXT
CLOSE DATABASE ALL
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform