Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box Problem
Message
From
28/02/1997 16:34:33
 
 
To
28/02/1997 16:30:04
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00022490
Message ID:
00022495
Views:
40
>>I have a drop down combo box that is a list of printers. I use APRINTERS() to populate the box and allow users to add printers if they want. The valid of the combo is:
>>
>>IF !(this.DisplayValue == this.Value)
>> this.AddItem(this.DisplayValue)
>> this.Value = this.ListItem[this.NewItemID, this.BoundColumn]
>>ENDIF
>>
>>When I test it I have the following options:
>>
>> Dot Matrix
>> HP LaserJet 5/5M - Standard
>> \Nextgen\hp5
>>
>>Everything works great and I can add printers ok, BUT...
>>
>>If I select \Nextgen\hp the 1st backslash goes way and Nextgen\hp5 is added to the list, but it's disabled. Then if I select \Next... again, again, the bs goes away and another, duplicate, Nextgen... is added to the list.
>>
>>BTW InputMask = K and format is X.
>>
>>Any ideas?
>>
>>Thanks
>
>That's funny, but combobox understand a item started with "\" as disabled. You can avoid it if change RowSource (just Value will invoke the problem). Use Cursor as RowSource, and Insert Into Cursor to get new combo item.


Of course!!!! Thanks!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform