|
-
August 14th, 2001, 10:21 AM
#1
Automating number generation in a Combobox
I am trying to populate a combo box with no's 1 to 100. What's the best way of add this text to combo box w/o typing
cmbNo.Additem "1"
cmbNo.Additem "2" etc. till 100. i.e. I want to automate the no. generation
Sorry for my ignoreance but your help is much appreciated.
-
August 14th, 2001, 10:29 AM
#2
Re: Automating number generation in a Combobox
I would use a for next loop as follows:
Str will convert the integer into a string
Dim a as integer
for a = 1 to 100
cmbNo.Additem str(a)
Next a
-
August 14th, 2001, 12:03 PM
#3
Thank you
hi,
Thank you for your help..It works fine..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|