I got a strange load behavior from the last build.
using the following code:
Under build 0.9.6 everything goes well, while using the latest version the list loaded from the file seems to miss some elements.
Another problem: I'm using two list "paired" in this way:
list1 contains names, while list2 containes values linked to the names:
list1[0]=John
list2[0]=2
list1[1]=Paul
list2[1]=5
so I'll display: John:1 ; Paul:5
The problem is: the first time I increment a value in list2 all the values from that list increments. i.e.:
list2[0]=list2[0]+1 causes list2[1]=list2[1]+1.
Don't know if this is happening to me only, or if there's something i don't understand about lists.
Waiting some clarance, i'll go back to ver. 0.9.6.
Bye, Solonn
using the following code:
- Code:
file$ = AppPath$+"//Saves//"+"status.txt"; //status_list
fp$ = fopen(file$, "r");
string$ = readstring(fp$);
fclose(fp$);
strtolist(string$, ",", Status_List$); //status_list_Cont
foreach(Status_List$)
Status_List$=INT(Status_List$);
end;
Under build 0.9.6 everything goes well, while using the latest version the list loaded from the file seems to miss some elements.
Another problem: I'm using two list "paired" in this way:
list1 contains names, while list2 containes values linked to the names:
list1[0]=John
list2[0]=2
list1[1]=Paul
list2[1]=5
so I'll display: John:1 ; Paul:5
The problem is: the first time I increment a value in list2 all the values from that list increments. i.e.:
list2[0]=list2[0]+1 causes list2[1]=list2[1]+1.
Don't know if this is happening to me only, or if there's something i don't understand about lists.
Waiting some clarance, i'll go back to ver. 0.9.6.
Bye, Solonn