Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
functions tutorials
#1
i'm havin trouble findin tutorials on functions.. i'm tryin to learn more about subs as well, anybody know some good linx.. especially for the function stuff??
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#2
Is it just functions in general, or the nested functions?

Anyway, if it's standard functions, here's a little thingy...

It's actually really easy.


Code:
DECLARE FUNCTION Add_Em_Up(Val1 as Integer, Val2 as Integer) as Integer

Sum = Add_Em_Up(5, 25)

Print Sum

Sleep

FUNCTION Add_Em_Up(Val1 as Integer, Val2 as Integer) as Integer

Add_Em_Up = Val1 + Val2

End Function

I hope this helps a little. Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)