Help: SHAPE statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saadah
    New Member
    • Jan 2007
    • 4

    Help: SHAPE statement

    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.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by saadah
    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.
    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...
    Code:
    DoSomething "String1", [U]Text1.Text[/U], Variable3, etc.
    In the DoSomething sub, the second parameter would be a string (or a variant, which can hold just about anything).

    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.

    Comment

    • saadah
      New Member
      • Jan 2007
      • 4

      #3
      Originally posted by Killer42
      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...
      Code:
      DoSomething "String1", [U]Text1.Text[/U], Variable3, etc.
      In the DoSomething sub, the second parameter would be a string (or a variant, which can hold just about anything).

      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

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by saadah
        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.
        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?

        Comment

        • knychtell
          New Member
          • Jan 2007
          • 66

          #5
          hi, are you creating a a program that just runs like a login program?
          if you are trying to do something like that one, maybe i could give some advice,

          i need further info about the program you are creating, for what it is , what are it's function...

          Comment

          • saadah
            New Member
            • Jan 2007
            • 4

            #6
            Hi guys,

            thanks for all your help. I will get you the code of what I have asap.

            Cheers.

            Comment

            Working...