Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6_Combobox Control_AddItem Several Elements

Status
Not open for further replies.

plopez

Technical User
Apr 2, 2002
66
CL

Hi, I'm doing a program that needs to put a lot of numbers in a combobox control to see them until print.
The problem is the format and the separation between them is not always the same.
For example:
n1 n2 n3 n4 etc...

23.34 12.1 0.12 9.33
0 3.1 -123.3 81.0

You see,is a problem.

Please help me if you can. ¨[pc3]
 
when i attempted to do this, i just changed my font to courier new, wherein all characters take up the same amount of space, then i defined a fixed length for each column.

so if you want per column to have a length of 10

cmboMe = dta1 & space(10 - len(dta1)) & dta2 & space(10 - len(dta2)) & ...

combox1.additem cmboMe


[afro]
 

Hi, Dyepp19
I use your hint and it worked so good.
I really apreciate your help.Thanks again

plopez
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top