Substring/Top and tail: Difference between revisions

Content added Content deleted
No edit summary
Line 228: Line 228:
9010 DEF FN L$(A$)=LEFT$(A$,LEN(A$)-1)
9010 DEF FN L$(A$)=LEFT$(A$,LEN(A$)-1)
9020 DEF FN B$(A$)=FN L$(FN F$(A$))</lang>
9020 DEF FN B$(A$)=FN L$(FN F$(A$))</lang>

==={{header|IS-BASIC}}===
<lang IS-BASIC>100 LET S$="Knights"
110 PRINT S$(2:)
120 PRINT S$(:LEN(S$)-1)
130 PRINT S$(2:LEN(S$)-1)</lang>


==={{header|Sinclair ZX81 BASIC}}===
==={{header|Sinclair ZX81 BASIC}}===