Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox weirdness
Message
From
23/08/2000 14:25:30
 
 
To
23/08/2000 14:16:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00408372
Message ID:
00408389
Views:
23
>> if (aDir(thisForm.dirArray, 'g:\ssi605\data\hksreg\*.*') > 0)
>> thisForm.fileList.rowSource = 'thisForm.dirArray'
> this.Requery()
>> endif
< snip >
>Does the above bolded code help?
>Also, you might rather use RowSourceType of 7 (files). In this case, set the RowSource = "g:\ssi605\data\hksreg\*.*", after you have verified the directory exists.

The listBox populates fine. I don't want the behavior of rowSourceType=7. ThisForm.dirArray contains the values string values I want it to have, and it is the source for the listBox.

The problem: listBox.value is returning the numeric index of the array, not the string contained in the array.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform