--- title: "Stuff 2068" type: "article" slug: "stuff-2068-2" url: "http://localhost/article/stuff-2068-2/" markdown_url: "http://localhost/article/stuff-2068-2.md" published_at: "2024-02-04T12:33:06+00:00" modified_at: "2026-08-02T10:07:00+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Custom functions for converting Microsoft BASIC LEFT$, RIGHT$, and MID$ to Sinclair BASIC. LEFT$(A$,x) => DEF FN L$(A$,x)=A$(TO x) RIGHT$(A$,x) => DEF FN R$(A$,x)=A$(x+1 TO) MID$(A$,x,t) => DEF FN M$(A$,x,y)=A$(x to (x+y)-1)" category: - name: "SIN" slug: "sin" taxonomy: "category" url: "http://localhost/category/periodicals/sin/" post_tag: - name: "Best of Timex/Sinclair 2068 Articles and Documents" slug: "ts2068best" taxonomy: "post_tag" url: "http://localhost/tag/ts2068best/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Real Gagnon" slug: "real-gagnon" taxonomy: "indiv" url: "http://localhost/indiv/real-gagnon/" publication_r: id: 52924 title: "SIN" type: "periodical" url: "http://localhost/periodical/sin/" authors: "Real Gagnon" authors_r: - name: "Real Gagnon" slug: "real-gagnon" taxonomy: "indiv" url: "http://localhost/indiv/real-gagnon/" issue: "2" issues_articles: - id: 52936 title: "SIN n2 Sept 1985" type: "issue" url: "http://localhost/issue/sin-n2-sept-1985/" pages: "6" pubdate: "September 1985" archive_link: false --- # Stuff 2068 Custom functions for converting Microsoft BASIC LEFT$, RIGHT$, and MID$ to Sinclair BASIC. ``` LEFT$(A$,x) => DEF FN L$(A$,x)=A$(TO x) RIGHT$(A$,x) => DEF FN R$(A$,x)=A$(x+1 TO) MID$(A$,x,t) => DEF FN M$(A$,x,y)=A$(x to (x+y)-1) ```