Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox weirdness
Message
De
23/08/2000 14:08:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox weirdness
Divers
Thread ID:
00408372
Message ID:
00408372
Vues:
52
Hi everyone,

I am using the listBox defined below to display file names for the user to select. FileList.value is returning the numeric position in the recordSource array (1,2,3...), instead of the string value contained at that position in the array (the file name in this example).

I have created the same control using the Form Designer, and the listBox returns the name of the file. But for some reason it does not behave that way in my program example below.

I'm sure it is something simple, but I have hunted for well over an hour trying to kill this rabbit < g >

Thank you for the help...



define class mainForm as Form

< snip >
add object fileList as listBox with ;
top = 50;
left = 10;
width = this.width - 20;
rowSourceType = 5;
boundColumn = 1

dimension dirArray(1)

procedure init
if (aDir(thisForm.dirArray, 'g:\ssi605\data\hksreg\*.*') > 0)
thisForm.fileList.rowSource = 'thisForm.dirArray'
endif
endpro


Steve Gibson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform