Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adbojects doesn't reference Tables properly in a databas
Message
 
 
À
09/09/1998 14:23:54
Nancy Remillard
Indiana University Grad School
Bloomington, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00134691
Message ID:
00134787
Vues:
8
Nancy,

Maybe you need a SET DATABASE TO

>We are using the following line
>
>
>FOR i = 1 to ADBOBJECTS(laTables, "Table")
>....
>EndFor
>
>This is called for three separate Databases, and works fine for two of them. however when it hits the third, it fails.
>
>I wrote the following to try to figure out whats going on:
>
>Local T_list[1], x
>cdb = DBC()
>x=ADBOBJECTS(T_list, "Table")
>
>Wait Window "In DB "+ cdb+ "alen T_list is "+ STR(Alen(T_list))+" X="+STR(x)
>
>The Wait window shows me this
>
>IN DB master alen T_list is 1 X=0
>
>Now it's in the correct database, but after the adbobjects line
>alen(t_list) and x should both equal 11, the number of tables I have in the master database. The main differnce between the Master.dbc, and the other two dbc files is that master containes both views and tables, were the other two only contain tables.
>
>Has anyone else seen a problem like this or have suggestions on how to get around it?
>
>Thanks in advance.
>Nancy
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform