--- title: "STRING$" type: "article" slug: "string" url: "http://localhost/article/string/" markdown_url: "http://localhost/article/string.md" published_at: "2022-10-07T12:24:46+00:00" modified_at: "2026-08-02T10:05:52+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "STRING$ is a BASIC command used by some BASIC languages and is not the same as STR$. Knowing its meaning is necessary for SINCLAIR BASIC replacement. STRING$ is used to create strings made up of the same character in graphics, as for borders. You define the character and the desired number of repeats. SINCLAIR BASIC…" category: - name: "The Plotter" slug: "the-plotter" taxonomy: "category" url: "http://localhost/category/periodicals/the-plotter/" 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/" publication_r: id: 21216 title: "The Plotter" type: "periodical" url: "http://localhost/periodical/the-plotter/" volume: "6" issue: "2" issues_articles: - id: 39456 title: "The Plotter v6 n2" type: "issue" url: "http://localhost/issue/the-plotter-v6-n2/" pages: "4" pubdate: "February 1988" archive_link: false --- # STRING$ STRING$ is a BASIC command used by some BASIC languages and is not the same as STR$. Knowing its meaning is necessary for SINCLAIR BASIC replacement. STRING$ is used to create strings made up of the same character in graphics, as for borders. You define the character and the desired number of repeats. SINCLAIR BASIC replacement for `10 B$=STRING$(32, "-")` is : ``` 100 LET T$="": FOR N=1 TO 32: LET T$=T$+"-": NEXT N: LET B$=T$ ```