Combo Box edit/delete
Moderator: Rathinagiri
Combo Box edit/delete
Hi all
I want to edit/delete items from combo box. Can anyone point to how this can be done.
I have used Esgici's DynamicCombobox program to enter items in Combo box. Thanks Esgici.
I need to edit or delete certain items from the list.
Can anyone help please.
Thank you
I want to edit/delete items from combo box. Can anyone point to how this can be done.
I have used Esgici's DynamicCombobox program to enter items in Combo box. Thanks Esgici.
I need to edit or delete certain items from the list.
Can anyone help please.
Thank you
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Combo Box edit/delete
Any item can be changed in the runtime using the following statement:
form_name.comboboxname.item( n ) := 'New Item'
form_name.comboboxname.item( n ) := 'New Item'
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Combo Box edit/delete
Thanks for the reply Rathinagiri.
The item of the combobox will be changed by user,so how to know which item no was changed or deleted ?
The item of the combobox will be changed by user,so how to know which item no was changed or deleted ?
- luisvasquezcl
- Posts: 1258
- Joined: Thu Jul 31, 2008 3:23 am
- Location: Chile
- Contact:
Re: Combo Box edit/delete
Dear
I think it's not the proper control to do that kind of operations.
best regards,
Luis Vasquez
I think it's not the proper control to do that kind of operations.
best regards,
Luis Vasquez
Re: Combo Box edit/delete
For eg consider the enclosed program.
If I change "C" to "K" it does not change instead it adds "K" as another item.
Similarly deleting "C" does not delete it. It still has same items.
Pls have a look
Thanks
If I change "C" to "K" it does not change instead it adds "K" as another item.
Similarly deleting "C" does not delete it. It still has same items.
Pls have a look
Thanks
- Attachments
-
- MyDCB.rar
- (926 Bytes) Downloaded 162 times
Re: Combo Box edit/delete
Thanks Luis for your replyluisvasquezcl wrote: ↑Thu Feb 15, 2018 1:54 pm Dear
I think it's not the proper control to do that kind of operations.
best regards,
Luis Vasquez
Can you suggest an alternative.
Thanks
- luisvasquezcl
- Posts: 1258
- Joined: Thu Jul 31, 2008 3:23 am
- Location: Chile
- Contact:
Re: Combo Box edit/delete
Dear RPC,
I think a listbox or a grid can be the controls indicated for the type of operation you want to perform.
Best regards,
I think a listbox or a grid can be the controls indicated for the type of operation you want to perform.
Best regards,
Re: Combo Box edit/delete
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.
Re: Combo Box edit/delete
Hi Luisluisvasquezcl wrote: ↑Thu Feb 15, 2018 4:09 pm Dear RPC,
I think a listbox or a grid can be the controls indicated for the type of operation you want to perform.
Best regards,
List box doesn't allow for adding of items by user.
My combobox is part of a form and grid is a separate window so cant use grid.
Thanks though, for suggestion.
Re: Combo Box edit/delete
Thanks Andyglezi for the link but it relates to grid and grid is not appropriate for me as it opens in new window.andyglezl wrote: ↑Thu Feb 15, 2018 4:19 pm Hi RPC
Maybe this can help...
viewtopic.php?f=5&t=5433&p=53081#p53081