Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileFORM INPUT n,a$ FORM INPUT n AS a$ n: iexp a$: svar FORM INPUT and FORM INPUT AS are both used to input string variables. The value of n specifies the number of characters to be entered, up to a maximum of 255. Additionally, FORM INPUT AS displays the current value of a$, which can then be edited, or taken as a 'default' input by pressing Return or Enter immediately. The editing facilities are the same as those for the INPUT command. Example: FORM INPUT 10,a$ b$="test" FORM INPUT 5 AS b$ PRINT a$,b$ --> This asks for two strings to be entered. On the entry of the second string, the word 'test' is displayed as a preselected value of b$. This may then be edited, or accepted by pressing Return. Memo: A value of 0 for n is valid and causes the input to auto end.