17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

STRING$<br />

Chapter 2 Program Instructions<br />

Field of Application Function repeatedly returning the character of a specified ASCII value,<br />

or the first character in a specified string.<br />

Syntax STRING$(, )<br />

1 2<br />

1 is the number of times the specified character should be<br />

repeated.<br />

2<br />

<br />

is the ASCII decimal code of the character to be repeated.<br />

is a string expression, from which the first character will be<br />

repeated.<br />

Remarks The character to be repeated is specified either by its ASCII decimal code<br />

according to the selected character set (see NASC), or as the first character<br />

in a specified string expression.<br />

Example In this example, both ways of using STRING$ are illustrated. The character<br />

“*” is ASCII 42 decimal:<br />

10 A$="*INTERMEC*"<br />

20 LEADING$ = STRING$(10,42)<br />

30 TRAILING$ = STRING$(10,A$)<br />

40 PRINT LEADING$; A$; TRAILING$<br />

RUN<br />

yields:<br />

***********INTERMEC***********<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 220

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!