Hi, I am currently trying to design a program. But, i am stuck. I know how to write a statement that uses parameters but what I want is to use the data inputted in a textbox to serve as an input parameter. PLEASE HELP. thanks.
Help: SHAPE statement
Collapse
X
-
you can just pass the textbox control, or its .Text property, the same way you would pass a string (but without quotes around it) or a variable name. For example, if you have a sub called DoSomething you might do this...Originally posted by saadahHi, I am currently trying to design a program. But, i am stuck. I know how to write a statement that uses parameters but what I want is to use the data inputted in a textbox to serve as an input parameter. PLEASE HELP. thanks.In the DoSomething sub, the second parameter would be a string (or a variant, which can hold just about anything).Code:DoSomething "String1", [U]Text1.Text[/U], Variable3, etc.
Note that since you didn't say what version of VB you're using, I'm assuming VB6. Things may be different in VB.Net. -
Originally posted by Killer42you can just pass the textbox control, or its .Text property, the same way you would pass a string (but without quotes around it) or a variable name. For example, if you have a sub called DoSomething you might do this...In the DoSomething sub, the second parameter would be a string (or a variant, which can hold just about anything).Code:DoSomething "String1", [U]Text1.Text[/U], Variable3, etc.
Note that since you didn't say what version of VB you're using, I'm assuming VB6. Things may be different in VB.Net.
Hi,
Thanks for the help. But it is still not working. You guessed correctly on my using VB6. Could you enlighten me more please. Thanks a lot for the help in advance and have a nice weekend.Comment
-
Can you please explain in more detail exactly what it is that you want to do? I took a guess at it, but apparently got it wrong. I understand that you have some data in a textbox. But the actual question seems to be how to "use the data inputted in a textbox to serve as an input parameter". Please explain what you mean by this. For example, input parameter to what?Originally posted by saadahHi,
Thanks for the help. But it is still not working. You guessed correctly on my using VB6. Could you enlighten me more please. Thanks a lot for the help in advance and have a nice weekend.Comment
Comment