ok, well that's interesting...
I got more of me not knowing if this is right or not:
Code:
this just outputs some 3?! digit numbers, when they should be outputting what I stored to byte 1...
Code:
the above is in a lbl that I called before the 1st code thing i.e. me trying to disp "INT". When I didn't have the {}'s, it spit out some 9 digit #'s, iirc.
IX is the # of chars in STR, and STR is what the user input as the class name for period P. I've checked, and those values appear to be stored correctly in their vars, because I can store and display them with no problem. When it comes to appvar saving/ loading, that's when everything falls apart. I haven't tried to disp the user input from the appvar yet, bc I need to know the # of chars in order to read IX*1 bytes. Any help would be appreciated
how I "initialized" AppVars for the period(s) that were selected in the main menu (AppVars are made fine)
Code:
I got more of me not knowing if this is right or not:
Code:
For(P,0,8
If L1(P*3)=1
48+P->*{PSTR+6
Open(PSTR,"r+->B
Read(INT,1,1,B
SetTextXY(5,5
PrintUInt(*{INT},2
Pause
CloseAll
End
End
this just outputs some 3?! digit numbers, when they should be outputting what I stored to byte 1...
Code:
"PeriodX->PSTR
48+P->*{PSTR+6
//store ASCII # of period, 0-8, to offset 6
Open(PSTR,"r+->PERSLOT
Write(IX,1,1,PERSLOT
Write(STR,IX,1,PERSLOT+1
Close(PERSLOT
the above is in a lbl that I called before the 1st code thing i.e. me trying to disp "INT". When I didn't have the {}'s, it spit out some 9 digit #'s, iirc.
IX is the # of chars in STR, and STR is what the user input as the class name for period P. I've checked, and those values appear to be stored correctly in their vars, because I can store and display them with no problem. When it comes to appvar saving/ loading, that's when everything falls apart. I haven't tried to disp the user input from the appvar yet, bc I need to know the # of chars in order to read IX*1 bytes. Any help would be appreciated
how I "initialized" AppVars for the period(s) that were selected in the main menu (AppVars are made fine)
Code:
//create AppVars for the periods
"PeriodX"->PSTR
For(P,0,8
CloseAll
If L1(P*3)=1
48+P->*{PSTR+6
//store ASCII # of period, 0-8, to offset 6
// Period
//offset:0123456
Open(PSTR,"w
//make new file
End
CloseAll
End