DIMDATA with %

Previous topic - Next topic

Moru

Isn't it possible to use DIMDATA to fill an natural numbers-array with values?
Code (glbasic) Select
LOCAL ab%[]
DIMDATA ab[], 65, 66, 67, 68, 69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86


Gives this result:
Quote*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2008.290 - 3D, NET
Wordcount:189 commands

compiling:
C:\DOCUME~1\devcon\LOCALS~1\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\DOCUME~1\devcon\LOCALS~1\Temp\glbasic\gpc_temp0.cpp:25: error: no matching function for call to `DIMDATA(__GLBASIC__::DGNatArray&, int, DGInt[22])'
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:699: note: candidates are: void __GLBASIC__::DIMDATA(__GLBASIC__::DGIntArray&, int, DGInt*)
C:/Program Files/GLBasic/Compiler/platform/Include/glb.h:701: note:                 void __GLBASIC__::DIMDATA(__GLBASIC__::DGNatArray&, int, DGNat*)
*** FATAL ERROR - Please post this output in the forum

Kitty Hello

Had the same problem last weekend. You can trick it by typing:

DIMDATA ab%[], 1,2,3

I'll fix it in the next version, though.