|
-
Jan 2nd, 2002, 01:38 PM
#1
Creating VB Variables at RUNTIME
Can I create a variable at runtime such as follows?
dim i as integer
for i = 1 to loopcount
dim ListItem & i as listitem
Set ListItem & i = lstConnections.ListItems.Add()
ListItem & i.Text = "Item 1"
next i
I know this doesnt work but is there a way in VB to make this work?
Thanks!
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
|