Log in

View Full Version : Difference between Function and Procedure?



jman1208
07-15-2012, 11:15 PM
I know its obvious but what is the difference between both and when is best to use a Function or a Procedure? I'm fairly new to scripting in pascal and i really enjoy it and cannot wait for Simba to be fixed to i can finish my first script, but in the mean time i'm trying to learn as much as possible so i can get better.

YoHoJo
07-15-2012, 11:17 PM
Function returns a 'Result' ex: (string, integer, Boolean, etc)
Procedure does not.

jman1208
07-15-2012, 11:22 PM
Function returns a 'Result' ex: (string, integer, Boolean, etc)
Procedure does not.

Ah ok thanks a lot! That clears a few things up.

off topic, Your video tutorials got me into scripting for Simba :p. Thanks a lot I appreciate your work and contributions to this community!

Kasi
07-15-2012, 11:33 PM
Procedures can also return results within the parameters tho