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 / [LOCKED] WHO?!?! is smart enough to fix my SIMPLE problem?

Author
Message
Big Niemenator
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 19th Oct 2010 19:53
hey gang, I'm going crazy!! here is the code:



Now looking at this simple code you would assume it would print..
hello
there
hellothere

Instead!! it prints...
there
there
therethere

Its like the array sets all the values within itself to the last value assigned to any index.

I am using dbpro 1.075 is this a bug????


HELP PLZ!!! DRIVING ME NUTS!!!
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 19th Oct 2010 21:09
Weird, works fine for me, I'm on the latest version of DBPro too.

Maybe you have a plugin that uses the word 'message' as a function.

Health, Ammo, and bacon and eggs!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Oct 2010 21:19
It won't compile for me as 'message' conflicts with Blue Gui. When I shift that to one side, the code compiles and runs as expected.

Perhaps the OP should reapply the update and see if that fixes the problem.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Oct 2010 23:39 Edited at: 19th Oct 2010 23:40
Same here, wouldn't compile so I changed the name of the array and hey presto:


Balid
22
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 19th Oct 2010 23:54 Edited at: 19th Oct 2010 23:55
Worked fine for me as is.



Regards,



Indigo - A DBPro IDE Alternative
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Oct 2010 12:27
It works for me too. If reinstalling the update doesn't work you should uninstall and reinstall Darkbasic Pro then update.

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 20th Oct 2010 14:07
Balid, Grog, I'm guessing you don't have the BlueGUI plugin either. It's caused by a conflict with the 'message' keyword - I don't think reinstalling would fix it, it's best to just change the array name as proven by Baxslash.

Health, Ammo, and bacon and eggs!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Oct 2010 17:24
Didn't IanM point out that it won't compile in that case instead of giving weird results?
Neco
18
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Waterloo, Wisconsin USA
Posted: 20th Oct 2010 17:37 Edited at: 20th Oct 2010 17:38
It should still compile, it will just give a warning in the compiler window about the name conflict, and you have to manually run the EXE afterward (F8)

Unless different naming conflicts give different results. But that was my experience when having Styx installed and using Matrix Utilities 16

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Oct 2010 17:50
It shouldn't compile if the syntax is wrong. If the Plugin expects message() to have two arguments but you only give one for example. The compiler won't know your intention.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Oct 2010 20:24 Edited at: 20th Oct 2010 20:26
Quote: "Balid, Grog, I'm guessing you don't have the BlueGUI plugin either. It's caused by a conflict with the 'message' keyword - I don't think reinstalling would fix it, it's best to just change the array name as proven by Baxslash."


I do have BlueGUI... I just didn't have it installed on my current computer since I don't use it anymore. I did just install it to see his code snip not work but I doubt he has BlueGUI. For those of us that have BlueGUI it won't even compile because of the keyword conflict but he mentioned the input he sees so he does get the program to run conflict free. It must be an update problem.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Oct 2010 10:43
@Big Niemenator has not commented on any of these possible fixes yet. I suggest letting him have a go and report back if nothing works.

My guess is he's already solved it as he was "going crazy" but obviously not so crazy as to say thank you or post his own fix...

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Oct 2010 12:34
Yes, I sometimes wonder whether every new forum member's posts ought to be moved to the Newcomers board as a matter of routine. It gets annoying when they join to ask one question on this board and then don't have the courtesy to comment on the replies.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 22nd Oct 2010 12:48
I'm gonna lock this, as the originator seems to be ignoring it. The problem I have with moving posts, is that newcommers just won't find them - then they go and complain about posts being deleted, or re-post the same thing. Otherwise, I would probably move a lot of threads over to newcommers.

Health, Ammo, and bacon and eggs!

Login to post a reply

Server time is: 2026-07-22 03:51:12
Your offset time is: 2026-07-22 03:51:12