Hiya guys (and girls)

Hope this hasn't been posted before, looked and couldn't find anything.

I'm not a developer by trade, but play around with dev as a hoby... and just love to code.

I remember from the times that I did some Turbo Pascal dev that one can compile a Function to be an independent file, and then call it from any other program/script to run and return specific values.

I have searched the internet for an explenation of how this works, but all the functions that I find are included in the same script that it is called from.

Your view and assistance on this would be greatly appreciated.

Thanx