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 / Unocumented Commands List

Author
Message
re faze
21
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 7th Aug 2005 23:16 Edited at: 13th Aug 2005 01:55
take something away and sell it back to me later.... reminds me of a neighborhood i used to live in...... are these guys related to debo?

"I am what I am and that is all I can be -J King"
Narf The Mouse
21
Years of Service
User Offline
Joined: 16th Jul 2004
Location:
Posted: 11th Aug 2005 18:12
I've been using first token and next token for weeks now.

Cheese!

Expert Bug-Finder, Horrible at Identifying Them.
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Sep 2005 01:59
Just so everyone knows to work around this...

Here's the problem with First Token$() and Next Token$(): The text (assuming a variable is used) is "corrupted" by these commands, as demonstrated by the following code. The variable Test$ suddenly loses the rest of it's text.



The work around is to store the string in a temp$ variable, then only use the temp$ variable. Since this is common practice in most functions anyway, it's usually not an issue. But it could cause some problems if you try to use the string variable for other manipulation later, even if it is a temp variable.


Open MMORPG: It's your game!
Jess T
Retired Moderator
22
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 20th Sep 2005 08:46
Looks like the 'First Token$' command is replacing the delimeter with the null character... Which means that when DBP reads the string from memory, it gets there and says 'u-oh! Thats the end of the string!'

Thanks for that info, RiiDii, I'll post that on dbHelp ( with cred to you of course! )



Team EOD :: All-Round Nice Guy
Want Better dbHelp Files?

Login to post a reply

Server time is: 2026-06-12 05:24:07
Your offset time is: 2026-06-12 05:24:07