![]() |
Bug on ComboBox |
Post Reply
|
| Author | |
efi27
Groupie
Joined: 18 June 2013 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Bug on ComboBoxPosted: 18 June 2013 at 5:05am |
|
Hi,
comboBox.Additem method seems to have a bug when you try to put value on the third parameters of this method (itemData)( ex. : combobox1.additem "Blabla",,1 It work until you live your function. As soon as you want to use, VB6 display an error message N° 3420 (Object is not valid) It seems do not record the value. If you try to use then property itemdata, it's work (combobox.itemData=1) Eric
|
|
![]() |
|
efi27
Groupie
Joined: 18 June 2013 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 June 2013 at 2:55am |
|
Did you see same thing ? if not, is it necessary to change a property value of this element ? may somebody can help me ? thanks in advance..
Eric
|
|
![]() |
|
ilya
Groupie
Joined: 07 May 2012 Status: Offline Points: 37 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2013 at 9:00am |
|
Please provide a sample demo project illustrating your issue
|
|
![]() |
|
efi27
Groupie
Joined: 18 June 2013 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2013 at 9:34am |
|
well, it works BUT i'm just coming to see than if you put a Field value (obj.fields!anyfield_id ), you have the error. You need to put val(obj.fields!anyfield_id) if you want to use .....I don't know why : Form1.combobox1.additem Value,,.fields!id ---> Don't work when you want to read the item data Form1.combobox1.additem Value,,val(.fields!id) --> Work !! Any idea ? Eric Sorry for my very bad English.....
|
|
![]() |
|
ilya
Groupie
Joined: 07 May 2012 Status: Offline Points: 37 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 July 2013 at 8:52am |
|
Please provide a sample VB demo project illustrating your issue, thanks
|
|
![]() |
|
efi27
Groupie
Joined: 18 June 2013 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2013 at 1:44am |
![]() |
|
ilya
Groupie
Joined: 07 May 2012 Status: Offline Points: 37 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 July 2013 at 1:33pm |
|
fields!id returns object, you shouldn't store there a temporary object
|
|
![]() |
|
efi27
Groupie
Joined: 18 June 2013 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 July 2013 at 1:11am |
|
Yes, i understand but why it work if you use the itemdata property of combox.
i think it would be good to have the same issue with the 3rd parameters of additem, no ? Eric
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |