PDA

Click to See Complete Forum and Search --> : Please help me!!!!


nswan
Nov 29th, 2000, 09:21 AM
please help me I am desperate!!!

Is it possible to pass the name of an object such as a textbox to a procedure, so the procedure can access it's properties.
A simple example of what I want to do is put the same message in 30 different text boxes.

I would be most greatful for any help, and please let me know if you need anymore info

nick@swan8.fsnet.co.uk

Cheers
Nick

YoungBuck
Nov 29th, 2000, 09:30 PM
Is this what you are looking for....

Module1

Public Sub ShowHello(ByVal t As TextBox)

t.Text = "helloworld"

End Sub


Form1

Call ShowHello(Text1)

nswan
Dec 5th, 2000, 09:38 AM
Yeah, that's it mate. I thought it was more difficult and was trying stupid things.

Thank you very much.

Nick