>>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!!!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement