--- title: "String INPUT Hints" type: "article" slug: "string-input-hints" url: "http://localhost/article/string-input-hints/" markdown_url: "http://localhost/article/string-input-hints.md" published_at: "2022-10-07T12:28:19+00:00" modified_at: "2026-08-02T10:03:25+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "There another use of the keyword \"LINE\" beside starting a program at that line when saving a program. If the word \"LINE\" is used with a string \"INPUT\", the input prompt is given without the usual quotation marks." category: - name: "The RAMTOP" slug: "the-ramtop" taxonomy: "category" url: "http://localhost/category/periodicals/the-ramtop/" post_tag: - name: "Best of Timex/Sinclair 2068 Articles and Documents" slug: "ts2068best" taxonomy: "post_tag" url: "http://localhost/tag/ts2068best/" - name: "Reference" slug: "reference" taxonomy: "post_tag" url: "http://localhost/tag/reference/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "David Hoshor" slug: "david-hoshor" taxonomy: "indiv" url: "http://localhost/indiv/david-hoshor/" publication_r: id: 39272 title: "The RAMTOP" type: "periodical" url: "http://localhost/periodical/the-ramtop/" authors: "David Hoshor" authors_r: - name: "David Hoshor" slug: "david-hoshor" taxonomy: "indiv" url: "http://localhost/indiv/david-hoshor/" issues_articles: - id: 39875 title: "The RAMTOP Nov 1985" type: "issue" url: "http://localhost/issue/the-ramtop-nov-1985/" pages: "7" pubdate: "November 1985" archive_link: false --- # String INPUT Hints There another use of the keyword “LINE” beside starting a program at that line when saving a program. If the word “LINE” is used with a string “INPUT”, the input prompt is given without the usual quotation marks. Try this program: ``` 10 INPUT LINE a$ 20 PRINT a$ ``` The prompt for a$ is just the “L” cursor. Since there are no quotation marks, you can’t move the cursor to the left of the first quotation mark and enter “STOP”. You can only stop the input by entering capshift “6”. Supposed you want to print a string variable within an INPUT print line. By enclosing the string variable within parenthesis, the variable value of the string will be printed. Try this: ``` 10 INPUT "Enter your name";LINE n$ 20 INPUT "Enter your age ";(n$);a$ ``` You will see that the second line prints the name you entered in the first line, and enters the age in a$.