Results 1 to 2 of 2

Thread: calling sub??

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    425

    Exclamation calling sub??

    when i call a sub with a parameter

    i just put in like
    my sub here getText1(str1 as string )
    text1.text = "haha"
    getText1(text1.text) ' my sub

    but when my sub has more than 1 parameter

    my sub here getText1(str1 as string , str2 as string)
    text1.text= "haha"
    text2.text= "hehe"
    getText1(text1.text , text2.text) ' i will get an error " a equal = operator is expected"

    do i have to include a call getText1(t........) for sub with 2 or more input parameters?

    or what is the problem?

  2. #2
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    i don't know why youre getting the error, but put a variable and an = before u call the sub and it will work...

    whatever = getText1(text1.text , text2.text)
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width