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.

NAME DATE$<br />

Chapter —Program Instructions<br />

Purpose Statement for formatting the month parameter in return strings of<br />

DATE$("F") and DATEADD$(...,"F").<br />

Syntax NAME DATE$ , <br />

is the month number (1-12).<br />

is the desired name of the month.<br />

Remarks This statement allows you to assign names to the different months in<br />

any form and language you like. The names will be returned instead<br />

of the corresponding numbers in connection with DATE$("F") and<br />

DATEADD$("F") instructions, provided that a FORMAT DATE$ statement<br />

has been executed.<br />

The number of characters assigned to represent months in the FORMAT<br />

DATE$ statement decides how much of the names, as specified in the<br />

NAME DATE$ statement, will be returned. The names will be truncated<br />

at the left side. For example:<br />

FORMAT DATE$ "YY.MMM:DD"<br />

NAME DATE$ 1,"JANUARY"<br />

PRINT DATE$("F")<br />

yields for example:<br />

03.ARY.06<br />

Usually, it is best to restrict the month parameter in the FORMAT DATE$<br />

statement to 2 or 3 characters (MM or MMM) and enter the names of the<br />

months in the NAME DATE$ statement accordingly.<br />

Example This example shows how to make the printer return dates in accordance<br />

with British standard:<br />

10 DATE$="030115"<br />

20 NAME DATE$ 1, "JAN"<br />

30 NAME DATE$ 2, "FEB"<br />

40 NAME DATE$ 3, "MAR"<br />

50 NAME DATE$ 4, "APR"<br />

60 NAME DATE$ 5, "MAY"<br />

70 NAME DATE$ 6, "JUN"<br />

80 NAME DATE$ 7, "JUL"<br />

. . . . .<br />

140 FORMAT DATE$ "MMM DD, YYYY"<br />

150 PRINT DATE$("F")<br />

RUN<br />

yields:<br />

JAN 15, 2003<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 171

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

Saved successfully!

Ooh no, something went wrong!