プレイ日記
Scientist Speedy1101
How do you "subtract" strings, as in turning "bananas" into "banana"?
2そうだね
プレイ済み
返信[1]
親投稿
Hanzo rzsense
The following program will subtract the last letter from ST$. ST$="bananas" IF LEN(ST$)>0 THEN ST$=LEFT$(ST$,LEN(ST$)-1) ENDIF ?ST$
3そうだね
未プレイ
返信[2]
親投稿
Scientist Speedy1101
Thanks!
0そうだね
プレイ済み
返信[3]
親投稿
12Me23 12Me23
you can also use POP() and SHIFT() to remove characters: ST$="bananas" LAST$=POP(ST$) ?ST$ This is useful if you want to save the last character.
2そうだね
プレイ済み