ŚPR Prompt Replacement


The System Variable ŚPR contains the character used to indicate the prompt portion of a Ť input line. The default value is blank. Under normal circumstances, if Ť output is used to place a prompt on a line and Ť input is then used to capture user input, the length of the output prompt is indicated by blanks. ŚPR can substitute another fill character. For more details see Ť.

             Ť„'PLEASE TYPE YOUR NAME : ' Ş NAME„Ť
       PLEASE TYPE YOUR NAME : MYNAME
             NAME
                               MYNAME
             ŚPR„'*'
             Ť„'PLEASE TYPE YOUR NAME : ' Ş NAME„Ť
       PLEASE TYPE YOUR NAME : MYNAME
             NAME
       ************************MYNAME

If ŚPR is set to an empty vector, then the actual contents of the prompt line are returned.

             ŚPR„''
             Ť„'PLEASE TYPE YOUR NAME : ' Ş NAME„Ť
       PLEASE TYPE YOUR NAME : MYNAME
             NAME
       PLEASE TYPE YOUR NAME : MYNAME

Topic: APLX Help : Help on APL language : System Functions & Variables : ŚPR Prompt Replacement
[ Previous | Next | Contents | Index ]