Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox weirdness
Message
From
24/08/2000 14:38:00
 
 
To
24/08/2000 12:06:23
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00408372
Message ID:
00408922
Views:
46
>My guess is that when you define the thing programmatically, you do not set a value for Value and it is defaulted to .F. which is not character. What happens if you set the initial value of .Value = '' in your code?
>

We have found the root of the problem. Value is not defaulting to .f., but I just went and looked: it is zero when the program hits Form.init. And that would do it...

Since yesterday, I had already set Value to the first string of the array in Form init, so when I took away the controlSource property the form still worked properly.

I suppose it will work properly (listbox.value returning a string) as long as value is set to a string any time before the listBox gets focus.

Thanks to all of you for your help,
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform