|
Post by gato on Sept 16, 2007 2:54:54 GMT -5
Hi
im trying to port a game from qbasic to my beloved megadrive, using Basiegaxorz 0.26, and i cant do this part of qbasic code.
110 dim g(8) as string . . 140 randomize timer: restore 6150:for a=1 to 8: read g$(a): next a . . . 6150 data "76::!the ARMY" 6151 data "76::%the PEASANTS",0 6152 data "76::'the LANDOWNERS",0 6153 data "06--&the GUERILLAS",0 6154 data "76--&the LEFTOTANS",0 6155 data "76::*the SECRET POLICE",0 6156 data "7--%the RUSSIANS",0 6157 data "7--&the AMERICANS",0
when i pass it to basiegaxorz it gives an expexting variable in de read g$(a) statement in line 140.
please help me.What am i doing wrong.
best regards
|
|
|
Post by Tom Maneiro on Sept 16, 2007 14:40:49 GMT -5
BasiEgaXorz' READ command seems that it does not support matrices, so you can read only to variables, not to elements into a matrix... Say bye bye to your matrix then
|
|
|
Post by Gato on Sept 18, 2007 9:38:02 GMT -5
hi
there is a way of overcome this problem. Is there a way of reading the datas?
|
|
oompa loompa
I AM THE GOVERNATOR
"Git 'Er Dun!"
Posts: 1,301
|
Post by oompa loompa on Sept 19, 2007 0:41:25 GMT -5
basiegaxorz has a problems with linearity -- for instance, doing "A=123" and "read A" set the value of variable A totally differently. the read command can only set variables that are not arrays. i need to add some extra code to overcome this in the next version of the compiler though
porting code from qbasic to basiegaxorz will never happen, unless the code is very very simple, like what i did with the humarabi port. nethertheless, i still had to modify the code, and it wasn't 100%
to get that portion of the code to work, you'd need to do something like this:
Read blah$ myvar$(123) = blah$
|
|