Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nombre total de champs dans une table
Message
From
05/02/2003 14:40:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Nombre total de champs dans une table
Miscellaneous
Thread ID:
00749495
Message ID:
00749495
Views:
59
J’ai un listbox et je veux afficher le nom des champs d’une table
Exemple : name,address, city,zip4, country

Voici un bout de code :

lparameter toForm

thisform.oform=toForm

for x=1 to 19
thisform.lstbox1.additem(thisform.oform.allfield(x,1))
endfor


Mon problème est qu’il me donne le message d’erreur suivant ARRAY DIMENSION ARE INVALID quand le nombre de champs de la table est inférieur à 19

Je crois savoir qu’il faut que je change : FOR X=1 TO 19 par FOR X=1 TO
« VARIABLES TOTALS DE CHAMPS DANS LA TABLE»

Mais comment aller chercher le nombre total de champ dans une table ?

Merci
Isabelle
Next
Reply
Map
View

Click here to load this message in the networking platform