Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox weirdness
Message
From
23/08/2000 14:08:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Listbox weirdness
Miscellaneous
Thread ID:
00408372
Message ID:
00408372
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform