SRL Archive - Help

Difference between Function and Procedure?


jman1208

2012-07-15 19:15:29

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

2012-07-15 19:17:04

Function returns a 'Result' ex: (string, integer, Boolean, etc)
Procedure does not.

jman1208

2012-07-15 19:22:50

From: YoHoJo
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

2012-07-15 19:33:19

Procedures can also return results within the parameters tho