11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LESSON 26 SNIPPING STRINGS: LEFTS, MID$, RIGHTS, LENGLUING STRINGSYou already know how to glue strings together:55 A$="CON" 4- "CAT" + "EN" + "ATION"60 PRINT A$The real name for gluing is concatenation.Concatenation means "make a chain." Maybe we should call them chains insteadof strings.SNIPPING STRINGSLet's cut a piece off a string. Enter and run:10 REM> SCISSORS >20 PRINT "clr"30 N$="123456789"35 Q$=LEFT$(N$,4)40 PRINT N$, Q$The LEFT$ function snips off the left end of the string. The snipped off piece can be putinto a box or printed or whatever.RULE: The LEFT$() function needs two things inside the ( ) signs.1. The string you want to snip.2. The number of characters you want to keep.147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!