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.

LEN<br />

Chapter 2 Program Instructions<br />

Field of Application Function returning the number of character positions in a string.<br />

Syntax LEN()<br />

is the string from which the number of characters will be<br />

returned.<br />

Remarks The number of characters to be returned includes unprintable characters, but<br />

the quotation marks enclosing the string expression are not included.<br />

Examples In this example, lines 40 and 50 illustrate two ways of using the LEN function,<br />

when the number of characters from several string expressions are to be<br />

added up.<br />

10 A$="INTERMEC" (8 char.)<br />

20 B$="THERMAL" (7 char.)<br />

30 C$="PRINTERS" (8 char.)<br />

40 PRINT LEN(A$+B$+C$)<br />

50<br />

RUN<br />

23<br />

23<br />

PRINT LEN(A$)+LEN(B$)+LEN(C$)<br />

yields:<br />

This example illustrates that unprintable characters, e.g. space characters,<br />

are included in the value returned by the LEN function:<br />

PRINT LEN("INTERMEC THERMAL PRINTERS")<br />

yields:<br />

25<br />

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

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

Saved successfully!

Ooh no, something went wrong!