Announcement

Collapse
No announcement yet.

Also a Return Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Also a Return Question

    How do I tell a function to return the param I would like it to return?

    Something like

    Function PBMain()

    Local Res as Dword

    Res = AvStartProg("calc.exe")

    Msgbox Res

    End Function


    Function AvStartProg(Run as string) as dword

    Local P1, P2, P3 as Dword




    Return (P2) ' can't find it this and also this won't work Return P2

    End Function
    To Ask or Not To Ask ?

  • #2
    FUNCTION = p2

    Comment


    • #3
      Either with the generic
      Code:
      Function = <return value>
      i.e. Function = P1
      or with naming the function like
      Code:
      <Function name> = <return value>
      i.e.
      AvStartProg = P1

      Comment


      • #4
        I knew that , stuppid just forgot it !
        (age problem I think )

        Thanks Guys
        To Ask or Not To Ask ?

        Comment

        Working...
        X