adb
New Member
Posts: 3
|
Post by adb on May 14, 2019 19:08:06 GMT
Dear All Can you please assist me in trying to find out what the error contained in the error log relates to (log file attached)? I am trying to run a Basic program that I was asked to debug/transport that was written 2/3 years ago (sorry - cannot/not permitted to send it to you) under a different version of Basic (FNXBasic) that utilises buttons as part of an interactive interface On a Run OR a Debug attempt - the error appears: "Runtime error: IncludesKey: not understood". Any information would be most welcome Regards ADB Hampshire UK error.log (14.86 KB)
|
|
adb
New Member
Posts: 3
|
Post by adb on May 14, 2019 19:17:02 GMT
Sorry title should read INCLUDESKEYS *not* Insertkeys. My typo.
|
|
|
Post by jarychk on May 15, 2019 1:21:51 GMT
Too many restrictions for anyone on this forum to help you. (!)Members need to be able to see the program's code, or the relevant part of the code giving the problem. (!)This is a JUSTBASIC forum and not a FNXBasic forum. (!)A member or two by some slim chance may know what this INCLUDEKEYS feature is.
An alternative maybe is give a very clear description of what this part of the program is expected to do - exactly. If someone here could help you, the code would be in JUST BASIC; not FNXBasic.
|
|
|
Post by tsh73 on May 15, 2019 8:47:04 GMT
Really too little information but you are lucky.
Log mentions
BasicCompiler>>tokenize: <'sub onButtonClick (b...'> obviously it's part of the line but JB has such weirdiness: FUNCTION *REQUIRE* brackets around arguments while SUB *PROHIBIT* brackets around arguments
So
call onButtonClick 3
sub onButtonClick (b) print "hello" end sub
errors, while
call onButtonClick 3
sub onButtonClick b print "hello" end sub
does not.
|
|
adb
New Member
Posts: 3
|
Post by adb on May 15, 2019 17:13:12 GMT
Thank you tsh73 - helped enormously and it was nice to see a reply from someone who had obviously read AND understood the question AND has knowledge of the JB product
|
|
|
Post by tsh73 on May 16, 2019 7:43:26 GMT
Hello adb Please keep in mind that it is free forum. People reply here because they really like to help (and because they love BASIC and of course for "Wow! You did it!" kind of encouragement)
And getting into someone else's problem takes an effort (and sometimes luck).
So if no one answers that might because they just have nothing to say If you add some problem code you greatly (GREATLY!) increase you chances of meaningful answers. So jarych is really - right. Really, Internet forums 101.
Above that. Welcome to the forum; keep coding, share if you do something interesting.
Peace.
|
|
|
Post by cundo on May 16, 2019 17:39:49 GMT
Yeah, I didn't know what is was the problem. Without the code is quite difficult to know what is happening. Luckily, we have tsh.
|
|