0 Members and 4 Guests are viewing this topic.
prgmLIB should be at the bottom of your source. Don't put a return in the end of it, but in the beginning. Also it should start with "..", not ".", although that's not the problem.
Getcalc("appvTEST")->PDisp P
"TOTO"
:.FILELIB:...:DO NOT COMPILE AND RUN!:BAD THINGS WILL HAPPEN:...:Return:.FSM("appvStr4",SIZE):Lbl FSM:!If GetCalc([r1])->Θ:GetCalc([r1],[r2])->theta:End:[r1]->{Θ}^^r:[r2]->{Θ+length([r1])+1}^^r:Return:.FLL(filenum,"name","size"):Lbl FLL:If [r1]=1:[r2]->{Θ+30}:[r3]->{Θ+46}:End:If [r1]=2:[r2]->{Θ+61}:[r3]->{Θ+77}:End:If [r1]=3:[r2]->{Θ+92}:[r3]->{Θ+108}:End:If [r1]=4:[r2]->{Θ+123}:[r3]->{Θ+139}:End:If [r1]=5:[r2]->{Θ+154}:[r3]->{Θ+169}:End:If [r1]=6:[r2]->{Θ+185}:[r3]->{Θ+200}:End:Return:.FKL():Lbl FKL:DelVar Θ:Return::Lbl FBN:!If GetCalc([r1])->[r2]:GetCalc([r1],768)->[r2]:End:SortD(Θ,768):Copy(Θ,[r2],768)^^r:Return:.FCL(byteSTRT,length(bytes)):Lbl FCL:For([r4],0,[r2]):[r3]->{Θ+([r1]+[r4])}:End:Return::Lbl FAR:Archive Θ:Return
Ok so if anyone can help make sense of this that would be great!
Quote from: josh landers on April 16, 2014, 04:09:55 pmOk so if anyone can help make sense of this that would be great!... Didn't you write it? I don't understand why you're asking others to help you make sense of code that you authored. Unless you mean for others to help you debug it, in which case I see multiple things that are potentially errors, but I'm not really sure without knowing what any of this is supposed to do.
Quote from: josh landers on April 16, 2014, 04:09:55 pmOk so if anyone can help make sense of this that would be great!Woah, you wrote this code and don't know what it does? And you want us to figure it out? Yikes!...Before asking any questions, we want to see that you've done a bare minimum research into the questions you'd like to ask, and the APIs you're asking about....Spend at least 5 hours pondering on that, without any distractions, interruptions, or delays. If within that time, you've consulted every resource available, and you've put forth your best, good faith effort into solving this, and are sweating/head-desking over the issues with your code after 5 hours of heavy research and problem solving, come back to us for questions! ...
But I used very limited knowledge.
Your putting words in my mouth, I wrote the code, I have now worked on this for 18 and I dont think its too much to ask for people to look at a post, see a major flaw (or even a minor one) comment on it and explain.
This is my point, I used to scrapes of information I was given and came up with something that works but I don't know how the appvar works, and still do not. I need some more information about why i cant pull the information back out. Was it put in wrong etc.?
No I will not spend five hours of my day questioning what I wrote. Look at the post above yours and you will see that i cleared up the confusion about what it does.