Computing.Net > Forums > Programming > vb6 combo box

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vb6 combo box

Reply to Message Icon

Name: esambdc
Date: November 14, 2007 at 13:09:23 Pacific
OS: win2000
CPU/Ram: p4
Comment:

i want to fill a combo box by customer name (string), customer ID (number consists of 7-10 digits) i use additem method :
mycom.additem esam ,1143045
but overflow error occured related to the index of 1143045
what can i do except using dbcombo
thanks

E S A M



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: November 14, 2007 at 18:15:14 Pacific
Reply:

Well, you could make the index smaller (under 32768)...


0

Response Number 2
Name: esambdc
Date: November 18, 2007 at 14:13:10 Pacific
Reply:

I cannot do that becaues the index must refer to a customer id (long number) so ,how i can store long number in an index acceots integer only .
any function can do that or alternate solution ? ?

E S A M


0

Response Number 3
Name: Razor2.3
Date: November 18, 2007 at 19:16:58 Pacific
Reply:

Well, I don't think you can create an object that inherits VB6's combo box, so you may not be able to do that.

What I would do is create a 2D array. One side holds the combo box ID, the other holds the "real" number.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Copy files by date modifi... remote log on



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vb6 combo box

Combo Box ... www.computing.net/answers/programming/combo-box-/9906.html

combo box vs List box www.computing.net/answers/programming/combo-box-vs-list-box/10114.html

remove items from combo box www.computing.net/answers/programming/remove-items-from-combo-box/17604.html