Page 1 of 1

Strings

Posted: Wed Jan 30, 2019 11:09 am
by Ken
Hi again

The line d$ = “width of screen is “ in the snippet of code below gives an error.

As does a catencation using it such as p$ = “width of screen is “ & a$

These look pretty much like the examples such as T$ = "Result is " & M$ in your help section.

Why don’t my statements work?



graphics

a$ = screen_width()
d$ = “width of screen is “
b$ = screen_height()
draw text d$ at 40,40
draw text a$ at 100,40
draw text b$ at 30,60


Also sorry to hear this app is closing down. I am enjoying it.

Ken

Re: Strings

Posted: Wed Jan 30, 2019 12:38 pm
by Mr. Kibernetik
Smart BASIC is not closing down.

Regarding quotes please look here:
viewtopic.php?f=28&t=2211

Re: Strings

Posted: Wed Jan 30, 2019 10:38 pm
by Ken
Thanks, works beautifully holding down the quote mark key and selecting the old fashioned quote mark.. I should have checked other questions first.

Re: Strings

Posted: Thu Jan 31, 2019 2:28 am
by rbytes
You can shut off the new quotes and apostrophe at Settings/Keyboard/Smart Punctuation. Turn the switch to Off and you will always type the standard quote and apostrophe. You can easily switch Smart Punctuation on temporarily for other text work, but be sure it is off before you open Smart Basic.