Ijoran

Ijoran

  • NA
  • 7
  • 0

Use string array as identifier

May 15 2008 12:19 AM

I want to use a string array as an identifier to interact with a group of textboxes in a userform.

this would mean having code like

string[] Book = new string[5];

Book[1] = "Title"; Book[2] = "Author"; ...etc

Then I could use this to obtain information from the textbox.  e.g. MessageBox.Show (Userform.Book[1].Text.toString());

 

I don't seem to be able to find a way to convert/cast the string so I can use it to identify the TextBox in the Userform so would it be right to assume it is not possible?


Answers (7)