SmileBASIC コミュニティプレイ日記Scientist Speedy11012017/01/31 07:36:02How do you "subtract" strings, as in turning "bananas" into "banana"?2そうだね 3返信プレイ済み2017/11/04 02:27:58に取得
SmileBASIC コミュニティ返信[1]親投稿Hanzo rzsense2017/1/31 9:08The 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そうだね 未プレイ2017/11/04 02:27:58に取得
SmileBASIC コミュニティ返信[3]親投稿12Me23 12Me232017/2/1 7:10you 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そうだね プレイ済み2017/11/04 02:27:58に取得