Page 1 of 1
Compiler Codes
Posted: Wed May 23, 2018 2:33 am
by Sublime7
Does anyone have the compiler codes to this?
Should be something like hardware.
Trying to sync power usage frequency, use crashed input individually, mirror the sound board/graphics card, add third party hardware, buffer the strip/breaker, decompile code, fix my phone service, service the light, program the camera, adhere to Bluetooth, and align the iPhone buttons.
Re: Compiler Codes
Posted: Thu May 24, 2018 4:11 pm
by rbytes
Sounds like a problem with the Frannenstat chip.
Seriously, this is a Forum for Smart Basic users. Did you arrive here by mistake?
Re: Compiler Codes
Posted: Fri May 25, 2018 4:03 am
by Sublime7
Aight then I need the code for when a command crashes for the program to skip it and keep going
Re: Compiler Codes
Posted: Fri May 25, 2018 4:36 pm
by rbytes
Smart Basic has a few error-trapping commands, such checking if DATA statements have unread data, whether files exist, etc.
Otherwise you need to anticipate any errors that might occur and write code to trap them.
Example - ask someone for their name.
Getname:
INPUT "What is your name"; name$
IF name$="" THEN
PRINT "You didn't enter anything! Try again."
GOTO Getname
ENDIF
IF LEN(name$)>30 THEN
PRINT "Your name is too long. Please use a nickname."
GOTO Getname
ENDIF
PRINT
PRINT "Hello, "&name$
Re: Compiler Codes
Posted: Sun May 27, 2018 6:03 am
by Sublime7
Ah! Ok. So if I where to have an program have some kind of adherence that wasn’t available, but still had input, I would have to make an IF statement for the compiler to carry on.
Is there a quick way to do this with an infinite set of character combinations?
This program includes with a DO/WHILE loop, which has no else statement involved by default.
N = 31
X$ = ""
Z$ = ""
DO
DO
N = N + 1
Q$ = CHR$(N)
V$ = CHR$(N)
CALL A ()
WHILE 50
X$ = X$ & Q$
Z$ = Z$ & V$
END WHILE
UNTIL N > 125
UNTIL Z$ = "."
PRINT X$
Re: Compiler Codes
Posted: Sun May 27, 2018 1:29 pm
by rbytes
It makes no sense what you are asking. You can't just enter random characters and then call them as if they were functions. If you ask more questions that are this illogical, I will ignore them.
Some Forum members now suspect you of being a troll. Not a good thing for such a new member.
Re: Compiler Codes
Posted: Sun May 27, 2018 3:25 pm
by Sublime7
Ha! I guess any loop with an error - trapping command would be unable to be coded ambiguously, as it does not execute the code if it is has no specified output in the first place.
How do I remove the error-trapping command system?
Re: Compiler Codes
Posted: Sun May 27, 2018 3:45 pm
by Mr. Kibernetik
Sublime7 is banned for stupid questions.