Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 251
Chapter 2 Program Instructions
STRING$
Field of Application
Function repeatedly returning the character of a specifi ed ASCII value,
or the fi rst character in a specifi ed string.
Syntax STRING$(<nexp
1
>,<<nexp
2
>|<sexp>>)
<nexp
1
> is the number of times the specifi ed character should
be repeated.
<nexp
2
> is the ASCII decimal code of the character to be repeated.
<sexp> is a string expression, from which the fi rst character will
be repeated.
Remarks
The character to be repeated is specifi ed either by its ASCII decimal code
according to the selected character set (see NASC), or as the fi rst character
in a specifi ed string expression.
Example
In this example, both ways of using STRING$ are illustrated. The character
“*” is ASCII 42 decimal:
10 A$="*INTERMEC*"
20 LEADING$ = STRING$(10,42)
30 TRAILING$ = STRING$(10,A$)
40 PRINT LEADING$; A$; TRAILING$
RUN
yields:
***********INTERMEC***********