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 / Need help with a function

Author
Message
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 19th Feb 2006 15:21
I have a function in my program, but I cannot jump to a label I don't know why. Is there any way I can exit a function without ending the program? Any way to jump to a label?

Thanks in Advance - Computer Nerd

Current Project - Dark Icon: Icon Making App
Progress - 45%
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 19th Feb 2006 16:19
That is a really confusing sentence... Could you please try and ask again on another way?

First you talk about that you have a function in your program, then you say that you cannot jump to a label, then you ask if there are any way to exit a function without ending a program, and then you ask if there are any way to jump to a label...

You jump to a label like this:


Quote: "Is there any way I can exit a function without ending the program?"


Ummm.... Wha'???

Functions are used like this:


So what do you mean by if there is any way to exit a function without exiting the program???

-The Nerd

Free Particle Engine for DarkBasic Pro:
http://forum.thegamecreators.com/?m=forum_view&t=60141&b=5
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 19th Feb 2006 22:38
you can only jump to a label if it's within the function, but really undermines the whole point of functions.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Feb 2006 23:26
Not to mention bad coding.


Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 20th Feb 2006 20:09
You can exit a function without ending (If I understand what your asking) with the exitfuction command.

so for example

Login to post a reply

Server time is: 2025-05-23 14:49:05
Your offset time is: 2025-05-23 14:49:05