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.

DarkBASIC Discussion / functions... is it possible to do this?

Author
Message
Teh Go0rfmeister
21
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 7th Sep 2003 17:56
can i put syntaxes in functions- for example
i kno the below doesnt work but is there a way of doing it?

www.tinnedhead.tk watch this space for the first ever calculator to show the working out. also look out for our first game- ww.exor-mk1.tk
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Sep 2003 18:27 Edited at: 7th Sep 2003 18:28
Do something like this...

Besides, using goto inside a function wont work unless the label is actually inside the function.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Teh Go0rfmeister
21
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 7th Sep 2003 22:28
i was kinda hopin i wudnt hav to do that- but hey- i shudnt b so lazy

www.tinnedhead.tk watch this space for the first ever calculator to show the working out. also look out for our first game- ww.exor-mk1.tk
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Sep 2003 08:39
try to avoid gotos with functions.

if you think about everything in functions it makes it easier to work with larger sources as well as plopping in functions to other program script tests.

http://www.lunarpixel.com
It's already tomorrow in Australia

Login to post a reply

Server time is: 2025-05-20 20:31:26
Your offset time is: 2025-05-20 20:31:26