|
-
Mar 28th, 2001, 09:40 AM
#1
Thread Starter
Junior Member
How to make a textbox array at Runtime ?
ie, I want to make some textboxes in arrays (say txtNAME(i) )
I tried this method
Set txtNAME1 = Controls.Add("VB.textbox", "txtNAME1"), it works.
But when I give
FOR I = 1 TO 10
Set txtNAME(i) = Controls.Add("VB.textbox", "txtno(i)")
NEXT
It gives “Not a legal object Name” error message
Anyone with a helping hand ?
Thanks in advance
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
|