Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference in combobox behavior depending on source
Message
From
21/10/2005 13:42:00
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060796
Message ID:
01061177
Views:
11
>The original value of the bound field is blank. In the array I don't have blank value. This original blank value is added at the end of the combo's list the first time before I select a value from the list.
>
>However, I see this behavior with arrays only. If I use select sql and my field is empty, I do not see empty record in the combo's list. Why there is such inconsistence?
>
>Thanks.
>
>
>>in combos i see the actual value of combo, maybe the combo has a space as value the first time it shows?
>>by other way:
>>If you want user can select all range by eliminate the actual value of the combo add in keypress: if nkeycode=7 [new line] this.value='' [new line] endif
>>add a label next to combo or tooltiptext saying [Pres del to ALL]
>>
>>hope this helps

By design.
This happens only with Style = 2.
Logic is this:
- the program code is always right,
if the list is free (0,1,5) and a value is loaded in value
from program (set Value directly or with Controlsource)
then it means that the program proposes a valid value,
as the Combobox has only a value if ListIndex>0,
VFP creates a temporary Listindex for you.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform