Strings

Post Reply
Ken
Posts: 29
Joined: Tue Jan 29, 2019 1:49 am
My devices: Ipad
Location: NSW, Australia

Strings

Post 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

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

Re: Strings

Post by Mr. Kibernetik »

Smart BASIC is not closing down.

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

Ken
Posts: 29
Joined: Tue Jan 29, 2019 1:49 am
My devices: Ipad
Location: NSW, Australia

Re: Strings

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

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: Strings

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

Post Reply