Variable problem

Previous topic - Next topic

MrTAToad

With the following :

Code (glbasic) Select

FOR i%=STOREMESS% TO 0 STEP -1
NEXT


You get the usual two part error message :

QuoteC:\DOCUME~1\Nicholas\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:16: error: `S' was not declared in this scope
C:\DOCUME~1\Nicholas\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:16: error: `REMESS' was not declared in this scope

Quentin

funny, seems precompiler makes "S TO REMESS" of it

MikeHart

Is that an O or a zero inside STOREMESS?

MrTAToad

Its the letter O

A Zero looks like : 0

Quotefunny, seems precompiler makes "S TO REMESS" of it
Indeed it does - which it shouldn't :)

Kitty Hello

DO NOT USE CAPITAL WORDS PLEASE. THESE ARE FOR GLBASIC ONLY. KTHXBYE.

MrTAToad

Its something thats been mentioned before  =D

Moru

When I started with GLBasic you had to use all caps when declaring types. That isn't needed any more but I still do it out of habit...

Kitty Hello

No, it never was. It was a suggestion or .. I did. Now I changed to what Schranz0r Said:

TYPE TMyTypeName (Start with T, then Captial letter, then non capital letters)

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard