Psionicist
Explorer
I feel a little ashamed posting this, so please don't laugh 
I don't know any good programming forum accepting newbie questions like this, so I'll ask here, okay?
I am working on a little program here and I have created everything important and I just have to fix some small helptext in a statusbar, and I want to create a function out of it.
That is, instead of writing millions of crap like this:
...
I want to create a small function, lets call it HelpText, so I just have to write something like this in one function:
HelpText(Form) = ""
HelpText(Text1) = "Your +12V rail..."
HelpText(Text2) = "Your +5V rail..."
HelpText(Text3) = "Your VIO (Voltage Input Output) rail. Normal values are 3.3, 3.45 and 3.56..."
Ehh... How do I do that?

I don't know any good programming forum accepting newbie questions like this, so I'll ask here, okay?
I am working on a little program here and I have created everything important and I just have to fix some small helptext in a statusbar, and I want to create a function out of it.
That is, instead of writing millions of crap like this:
Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
StatusBar1.SimpleText = ""
End Sub
Private Sub Text1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
StatusBar1.SimpleText = "Your +12V rail..."
End Sub
Private Sub Text2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
StatusBar1.SimpleText = "Your +5V rail..."
End Sub
Private Sub Text3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
StatusBar1.SimpleText = "Your VIO (Voltage Input Output) rail. Normal values are 3.3, 3.45 and 3.56..."
End Sub
...
...
...
and so on...
I want to create a small function, lets call it HelpText, so I just have to write something like this in one function:
HelpText(Form) = ""
HelpText(Text1) = "Your +12V rail..."
HelpText(Text2) = "Your +5V rail..."
HelpText(Text3) = "Your VIO (Voltage Input Output) rail. Normal values are 3.3, 3.45 and 3.56..."
Ehh... How do I do that?
