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.

Newcomers DBPro Corner / Boolean is not compatable with DBC what can i use instead ?

Author
Message
Ian Hughes
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: UK
Posted: 5th Oct 2003 20:13
Hello

I have just relize that boolean is not compatable with DBC is this right as i have post a question and been play with this code below
all I am trying to do is move a bitmap around the screen as I would like to have a ship instead of the letter "a" if some can point me in the right direction or change the code soI can see what it should look like and then i can have a play with it.

Also I have notice some other commands are not compatale as I am a newbie to programing did I make the correct choic in DBC or hould i cot DBP?
Thx
Ian

Spam UK
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Oct 2003 20:54
For anything that is not a float or a string you can just use an integer instead.
skovron
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 5th Oct 2003 21:12
Yes you can use integer.
What your variable will represent will depend on the way you treat it.
for example booleans:


and you've got pretty nice boolean
Ian Hughes
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: UK
Posted: 5th Oct 2003 22:24
hello
I have tried to run the code for testing my space ship and the bootlead command it came back with this error
stex error uknown command

all I am trying is to display the space ship instead of my letter "a" and move the ship left and right using the keys z left x right

any help
Ian

Spam UK
skovron
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 5th Oct 2003 23:24
Not sure which code you mean. Show this code.

Quote: "stex error uknown command"

means that DB dont know the command STEX so maybe you've spelled something wrong
Ian Hughes
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: UK
Posted: 6th Oct 2003 12:11
Ops

Sorry My spelling let me down it was syntex error unknow comanan
any help with this
Ian

Spam UK
skovron
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 8th Oct 2003 01:20
Soory but still dont know which code you mean, yours source or my snippet?
As for your code - works for me very well.
And as for my snippet its only a pseudo

Which line you got that syntax error?
Ian Hughes
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: UK
Posted: 8th Oct 2003 02:58
Hi
Thanks for your you reply. the error for me is
ShowGraphic As Boolean
this is the error i get syntex error unknown command

I am using DBC
I will paste the code again

Spam UK
PoHa!84
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 8th Oct 2003 03:12
You get the error b/c ShowGraphic As Boolean isn't a command in DBC.

Destroy you with my mind, I could!
skovron
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 8th Oct 2003 11:36
Ok now i get it. I'm not familiar with DB Classic but that was the point: if there isnt bolean type try this code

Login to post a reply

Server time is: 2024-11-25 11:27:23
Your offset time is: 2024-11-25 11:27:23