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 / Some questions on DBPro

Author
Message
Gamer
23
Years of Service
User Offline
Joined: 29th Apr 2003
Location:
Posted: 2nd May 2003 22:37
I'm using the DBPro free trial version and still determining if I should make a purchase. So far, I've a couple of questions:

1) Does it support the use of constants? Doesn't seem like it does.2) I've been having trouble splitting a long line of code. Something wrong with the compiler? I've something like this in my code:

WHILE (A AND B)
...
ENDWHILE

But if I split it like this:

WHILE (A AND _
B)
...
ENDWHILE

the compiler bitches about missing bracket. But when I paste this same piece of code (the one with the _ as the concatenating character) in VB, it compiles. Now, I've checked under the DBPro's Tool menu that the concatenation character is indeed the underscore.
So, can somebody tell me what's going on?

3) Is it true that all global variables have to be an array of size 1?

4) What do you all think of DBPro? Is it worth purchasing? Is their technical support good in terms of speed of response?

That's all for now. Thanks.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd May 2003 23:01
1) Yes. Use this form:

#constant MyConst Value

2) Have you enabled line concatenation? It's the tick box immediately above the concatenation symbol.

3) No. Just prefix your variable declarations with 'global' like this:

global MyString as string

4) It's great. Yes. Um ...
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 2nd May 2003 23:26
To answer part 1). Contrary to what the help file says there is NO equals-sign between the constant name and value.

Current Project: TANK MELÉE [Artwork]

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_101.zip

Login to post a reply

Server time is: 2026-07-11 02:35:28
Your offset time is: 2026-07-11 02:35:28