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.

NAME DATE$<br />

Chapter 2 Program Instructions<br />

Field of Application 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 any form<br />

and language you like. The names will be returned instead of the corresponding<br />

numbers in connection with DATE$("F") and DATEADD$("F") instructions,<br />

provided that a FORMAT DATE$ statement 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 NAME<br />

DATE$ statement, will be returned. The names will be truncated at the left<br />

side. For example:<br />

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

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

PRINT DATE$("F") yields e.g.:<br />

99.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 with<br />

British standard:<br />

10 DATE$="990601"<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<br />

RUN<br />

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

yields:<br />

JUN 01, 1999<br />

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

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

Saved successfully!

Ooh no, something went wrong!