Comet 32 Runtime
|Mnemonic:||(Init Input Data)|
The (Init Input Data) mnemonic is a one-time function that when issued prior to a new
causes the screen field(s) to be initialized from the
current variable(s) instead of from the existing screen data.
Rules for using this mnemonic:
This mnemonic works with a single input value as well as multiple input values within a single INPUT statement.
Note: This mnemonic applies to the new INPUT statement, not to the legacy INPUT statement.
In this example, OPTION$ is set to an initial value of "Y" and the (Init Input Data) mnemonic is issued before the INPUT statement. When the INPUT statement is executed, "Y" is displayed at column 10, row 10, and the cursor is positioned at that same location.
In this example, three values are set to their initial values, and then the (Init Input Data) mnemonic is issued. When the INPUT statement is executed, the initial values are displayed.
Note that a length override of 10 is applied to DATA$, which displays the first 10 characters of the input field. (The input data will scroll horizontally if the cursor moves beyond the bounds of the field's entry area.)