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 Professional Discussion / Failed to DoUserFunction :: GetUserFunctionDeckChain

Author
Message
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Sep 2003 03:49
What the hell?
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 30th Sep 2003 04:07
Did you do?

The sky above the port was the colour of television, tuned to a dead channel.
Your brain's just like any other appliance: it works better if you plug it in...
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Sep 2003 07:15
...to deserve such a wierd inexplicable error as...

Failed to DoUserFunction :: GetUserFunctionDecChain

I've been a good boy, really I have!
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 30th Sep 2003 08:37 Edited at: 30th Sep 2003 08:38
For those who don't know, this cryptic error message often appears when you try to return a variable from a function with:

exit function <Variable>

instead of:

exitfunction <Variable>

I confess it's simple typing error I often make Try it without a return variable and you get the correct error message.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 30th Sep 2003 11:06
It would help if these sort of messages were described a bit better.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 30th Sep 2003 18:50
I don't think the compiler "understands" the problem.

ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Sep 2003 19:55
Easily Confused, you are not
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 30th Sep 2003 20:15
Er... Actually I don't have any exit functions OR exitfunctions. I took them all out and replaced them with gotos (there were only like 2) and it still does it. There must be some other cause.

Yeah I have that problem from VB with things like

Exit Function
End Type
End Sub
etc...
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 30th Sep 2003 21:45
Hmmm (scratches head), I'm unable to recreate the error using just gotos.
Looks like I am easily confused over this one.

To be honest I rarely use gotos, Any chance we can view the source?

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
ZomBfied
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 1st Oct 2003 00:34
I think I might have had a function declared twice somewhere. I reverted back to the previous day's code and the problem "went away" so...

I just wonder what actually is supposed to trigger that error...
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 1st Oct 2003 00:46
Even though this is not a bug as such, I've just posted "unhelpful error with exitfunction" in the bug forum. If accepted we might see a proper error message in patch 6 (fingers crossed).

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Oct 2003 02:33
Heh, your wish is my command
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 1st Oct 2003 02:39
Thankyou oh mighty moderator of the bug forum

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.

Login to post a reply

Server time is: 2026-07-25 09:59:21
Your offset time is: 2026-07-25 09:59:21