Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the deal with Combos?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00273965
Message ID:
00274237
Vues:
28
Un-freeking-believable. This makes all the difference:

PROCEDURE Init

DoDefault()
select StaffName from travel!supers order by staffname into array This.aList

The problem is the Select creates an array like:

.aList[1,1] = 'value1'
.aList[1,2] = 'value2'
etc...

To make it work, you have to redimension the array to single element:

PROCEDURE Init

DoDefault()
select StaffName from travel!supers order by staffname into array This.aList
dimension This.aList(alen(This.aList, 1))

Which makes the array look like:

.aList[1] = 'value1'
.aList[2] = 'value2'
etc...

Then everything works. How maddening.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform