02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LEN<br />

Chapter —Program Instructions<br />

Purpose 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 returned.<br />

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

but 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<br />

be 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 PRINT LEN(A$)+LEN(B$)+LEN(C$)<br />

RUN<br />

yields:<br />

23<br />

23<br />

This example illustrates that unprintable characters, for example space<br />

characters, 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 <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 1 1

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

Saved successfully!

Ooh no, something went wrong!