Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
unsilviu
17
Years of Service
User Offline
Joined: 12th Sep 2007
Location:
Posted: 13th Sep 2007 10:12
Hi, I'm new to db pro programming, and, even though I have already learned many things, there is ONE thing that stops me from going further with my "research":functions
I read somewhere about them and I understood, just like the guys at the dark basic pro threads, that they are sub-programs that execute certain things.
But could anyone explain everything about them in detail, just like for a beginner that doesn't understand anything about them?



I also hope I'm not making anyone mad with this post

*I am a Jedi
dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 13th Sep 2007 11:57
Sure, fuctions basicly are your own command made up of other commands. So say if i wanted ot make a simple function that printed hi on the screen i would simply put:

Function HI()
Print "Hi!"
end function

Now it wont run this code becouse we have it out side are loop. But its easy enough to call. As you can see the Function HI() this im simply saying call my function HI()

So when ever we need to call it we can simple put:

HI()

anyware in are code, well most places.

And thats the basics of functions.
Jeff032
17
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 13th Sep 2007 16:23 Edited at: 13th Sep 2007 16:23
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Sep 2007 22:49

Login to post a reply

Server time is: 2024-09-27 05:17:06
Your offset time is: 2024-09-27 05:17:06