Why can't I create an array?

M

Monkey

Normally, I don't work with programs that build me pages, so I /really/ want
to get into the script editor and play around with the VBScript itself in
InfoPath (for that's what I'm told it is). Now, I'm not terribly fammiliar
with VBScript, but I'm pretty sure I've figured out an array. It looks like
this:

dim customer(537);

//A
customer(0) = "Aaron Bauer"
customer(1) = "Aaron Smith"
....etc

now, why oh why won't the script editor allow me to use this? Do I need
something before or after it?
 
M

Monkey

Okay, I figured that bit out...but now, how do I declare my form controls as
variables or objects or whatever they'd need to be if I wanted their content
to depend on what someone entered in a specified control?

thanks!
 
Top