I really have a BIG problem in making control arrays.
The following is what i fed to the PC
sub form_load()
const n=15
dim Sam(n) as textbox
for n=1 to 15
sam(n).text="SamY"
next n
end sub
It won't work.
SamY
6
Junior Poster in Training
Recommended Answers
Jump to Posthmm got it half-fixed:
sub form_load()
const n=15
dim Sam(n) as textbox
for a=1 to 15
sam(n).text="SamY"
next a
end subBut now it's coming up with something being wrong with the 'sam(n).text="SamY" line.
The error is:
vb6 runtime error 91: Object Variable Not Set
Jump to PostWhat have you got on the form itself? The names of the objects would be helpful too.
All 7 Replies
Scottg1989
2
Junior Poster
SamY
6
Junior Poster in Training
Scottg1989
2
Junior Poster
williamrojas78
11
Junior Poster
Comatose
290
Taboo Programmer
Team Colleague
SamY
6
Junior Poster in Training
SamY
6
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.