GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2008-Dec-29

Title: error : make use of protected keyword : char
Post by: MrTAToad on 2008-Dec-29
...ooh - what is char used for ?
Title: Re: error : make use of protected keyword : char
Post by: Moru on 2008-Dec-29
My memory is cloudy in this but isn't it a type in C?

But what is Cube? I get that in blue when I type it in a fresh project (but only in the last version, not in the current GLBasic)...
Title: Re: error : make use of protected keyword : char
Post by: Schranz0r on 2008-Dec-29
"char" is a variabletype for C++ !
char = character / letter


example single char:
Code (glbasic) Select
char letter = "a";


example string/char-array:
Code (glbasic) Select
char myword[5] = "Hello";



Cube was highlightet?
You test it with a new Project?
Title: Re: error : make use of protected keyword : char
Post by: MrTAToad on 2008-Dec-29
In this case I wasn't using inline for char - was trying to do char% =

Haven't seen Cube though.
Title: Re: error : make use of protected keyword : char
Post by: Moru on 2008-Dec-29
When I first opened the 3D entity project, all "cube" was blue, then I opened a new project and tested and there it got blue too. Now after updating it doesn't happen any more.