Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Format problem
Message
From
07/12/2001 02:04:05
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00590977
Message ID:
00591004
Views:
21
The Function MakeLength is to output the formated input string to a certain lenght like MakeLength("Test",5), it will give output of "Test ", lenght of 5
as I want to format the displaying in combo box.

>>Hi,
>>
>>I am using combo to populate it with data. As I can't had 02 columns of
>>display in combo as easily as it can be done in VFP, I had to do the following
>>code below
>>
>>lCode = MakeLength(lCode,20)
>>lDisplay = lCode & SPACE(1) & lName
>>
>>The function Makelength is written by me to make the final return string to be total length of 20 to append with the variable lName hopping to get display
>>as show below
>>
>>12334 user 1
>>122233 user 2
>>222223333 user 3
>>
>>But insteads, I get the display below from the combo box
>>
>>1233 user 1
>>122233 user 2
>>22222333 user 3
>>
>>I am loss, please advise me on the above issue why the formating
>>is out for me in the combo box.
>
>And what is the code behind MakeLength ?
Best Regards
Virusim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform