GLBasic forum

Main forum => Bug Reports => Topic started by: D2O on 2008-Feb-02

Title: DIMPUSH mit String Arrays gehen nicht.
Post by: D2O on 2008-Feb-02
Hi, folgender Code geht:
Code (glbasic) Select
GLOBAL counter = 0
DIM a [1]
FOR i = 0 TO 99

 a[i] = counter

 INC counter,1

 DIMPUSH a[],counter

NEXT


FOR i = 0 TO 99

PRINT a[i],100,100
SHOWSCREEN
SLEEP 300
NEXT
Wenn ich nun ein String Array benutze gehts nicht mehr:
Code (glbasic) Select
GLOBAL counter = 0
DIM a$ [1]



FOR i = 0 TO 99

 a$[i] = counter

 INC counter,1

 DIMPUSH a$[],counter

NEXT


FOR i = 0 TO 99


PRINT a$[i],100,100
SHOWSCREEN
SLEEP 300
NEXT
Quote_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2007.363 - 3D, NET
Wordcount:10 commands

compiling:
C:\Users\Fabio\AppData\Local\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\Users\Fabio\AppData\Local\Temp\glbasic\gpc_temp0.cpp:12: error: no matching function for call to `DIMPUSH(__GLBASIC__::DGStrArray&, DGInt&)'
C:/Basic/GLBasic/Compiler/platform/Include/glb.h:462: note: candidates are: void __GLBASIC__::DIMPUSH(__GLBASIC__::DGIntArray&, DGInt)
C:/Basic/GLBasic/Compiler/platform/Include/glb.h:467: note:                 void __GLBASIC__::DIMPUSH(__GLBASIC__::DGArray<__GLBASIC__::DGStr>&, __GLBASIC__::CGStr)
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Zeit: 0.6 sek
Erstellen: 0 erfolgreich
*** 1 FEHLGESCHLAGEN ***
Title: DIMPUSH mit String Arrays gehen nicht.
Post by: Schranz0r on 2008-Feb-02
Jopp, stinkt nach Käfer :D
Title: DIMPUSH mit String Arrays gehen nicht.
Post by: D2O on 2008-Feb-02
Puh, hatte schon selbstzweifel :)
Title: DIMPUSH mit String Arrays gehen nicht.
Post by: Kitty Hello on 2008-Feb-03
DIMPUSH a$[],counter+""

*ducken und rennen *
nächste Version, dann, OK? ;)
Title: DIMPUSH mit String Arrays gehen nicht.
Post by: D2O on 2008-Feb-03
Danke, geht.
Mach mal Wochenende :)
Title: DIMPUSH mit String Arrays gehen nicht.
Post by: Schranz0r on 2008-Feb-03
^^ ist ja übel :)