12-15-2012, 09:42 AM
Si se compila el siguiente fragmento de código el resultado es muy diferente del esperado:
Si ahora consultas el resultado del array de objs, en lugar de contener todos los elementos 9999 contienen el valor 255.
Compiling the following code, the value of the matrix elements is totally diferent to the expected one:
All the elements of the obj matrix are now 255 instead 999.
Using a intermediate scalar variable the result is correct.
NOTE: Bug fixed in the new version 1.3.0s952
Code:
Dim obj(15) as uinteger
for i = 0 to 15
obj(i) = 9999
Print Obj(i)
nex i
Si ahora consultas el resultado del array de objs, en lugar de contener todos los elementos 9999 contienen el valor 255.
Compiling the following code, the value of the matrix elements is totally diferent to the expected one:
Code:
Dim obj(15) as uinteger
for i = 0 to 15
obj(i) = 9999
Print Obj(i)
nex i
All the elements of the obj matrix are now 255 instead 999.
Using a intermediate scalar variable the result is correct.
NOTE: Bug fixed in the new version 1.3.0s952