General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only