0 Members and 2 Guests are viewing this topic.
.VAT2STR{e9830}r -> P . VAT start PointerRepeat getkey(15)ClrDraw""[CE]" "->Str9 . [CE] is the "..." Character for representing loading, then Space character by seven timesIf {P}=21 . If current entry has type 'appvar'For(X,0,{P-6}-1){P-7-X}->{Str9+X} . This doesnt work. :/ It should copy the entry name into Str9EndElse . If the type isnt 'appvar' then Str9 is still "..."P-{P-6}-7-> P . Go to the next entryEndIf getkey(3) and (P>=VAT endP-{P-6}-7-> P EndFix 5Text(1,1,Str9) . Str9 is always "..."DispgraphEnd . Loop EndFix 4Return
first, I notice "{P-7-X+1}->{Str9+X}" should be "{P-7-X}->{Str9+X}" since P-7 is the first entry, not P-6, which is what yyou got by adding 1 back at the end...
Quote from: cooliojazz on October 21, 2010, 08:44:37 pmfirst, I notice "{P-7-X+1}->{Str9+X}" should be "{P-7-X}->{Str9+X}" since P-7 is the first entry, not P-6, which is what yyou got by adding 1 back at the end... Youre right. I removed the mistakes from the code in the last post.Here is a screenshot showing what happens if I output appvar names character by character with 4 pxl gaps.
For(X,0,{P-6}-1){P-7-X}->{Str9+X} . This doesnt work. :/ It should copy the entry name into Str9End
Wait, why are you going back to using programs? This isn't a problem inherent in the fact that level data is stored in appvars, it's a problem inherent in the fact that your main program is compiled as an application.