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 / What is a non-uniary operation?

Author
Message
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 23rd Sep 2004 16:04 Edited at: 23rd Sep 2004 16:05
Hi
I have just received this message whilst compiling



The line of code it refers to is:



Can anyone tell me what the error means and how to set sync rate from a variable?

Thanks

Zokomoko
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 23rd Sep 2004 16:15
Quote: "Sync Rate = SyncRate"


if you want to use the sync rate command then:
Quote: "Sync Rate SyncRate"

there shouldn't be an eqaulity sign.

if it's just a variable, there shouldn't be spaces.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Sep 2004 17:06 Edited at: 23rd Sep 2004 17:07
Quote: "Sync Rate = SyncRate"

Is not valid as you are trying to assign a reserved word to a reserved word - see the instruction manual for the correct format.


Come to the UK Convention on the 23rd & 24th of October
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 23rd Sep 2004 17:11
A uniary operation is one which only requires one value to work, for example, NOT is a uniary operation:

ie. thisIsNotA=(not thisIsA)

Most operations are non-uniary, for example, the + operator is non-uniary because it requires two values to add together.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 23rd Sep 2004 17:20
Thanks for all the input

It was of course the = A very silly mistake

I change the code to:
Sync Rate SyncRate and now it works perfectly.

Thanks

Login to post a reply

Server time is: 2025-06-04 18:12:55
Your offset time is: 2025-06-04 18:12:55