Compiler Codes

Post Reply
Sublime7
Posts: 9
Joined: Thu Mar 29, 2018 8:32 pm
My devices: iPhone SE
Flag: United States of America

Compiler Codes

Post 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.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Compiler Codes

Post 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?
The only thing that gets me down is gravity...

Sublime7
Posts: 9
Joined: Thu Mar 29, 2018 8:32 pm
My devices: iPhone SE
Flag: United States of America

Re: Compiler Codes

Post by Sublime7 »

Aight then I need the code for when a command crashes for the program to skip it and keep going

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Compiler Codes

Post 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$
The only thing that gets me down is gravity...

Sublime7
Posts: 9
Joined: Thu Mar 29, 2018 8:32 pm
My devices: iPhone SE
Flag: United States of America

Re: Compiler Codes

Post 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$

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Compiler Codes

Post 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. :(
The only thing that gets me down is gravity...

Sublime7
Posts: 9
Joined: Thu Mar 29, 2018 8:32 pm
My devices: iPhone SE
Flag: United States of America

Re: Compiler Codes

Post 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?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4782
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Compiler Codes

Post by Mr. Kibernetik »

Sublime7 is banned for stupid questions.

Post Reply