Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 251
Chapter 2 Program Instructions
STRING$
Field of Application
Function repeatedly returning the character of a speci ed ASCII value,
or the rst character in a speci ed string.
Syntax STRING$(<nexp
1
>,<<nexp
2
>|<sexp>>)
<nexp
1
> is the number of times the speci 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 rst character will
be repeated.
Remarks
The character to be repeated is speci ed either by its ASCII decimal code
according to the selected character set (see NASC), or as the rst character
in a speci 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***********