17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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 WEEKDAY$<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for formatting the day parameter in return strings of<br />

WEEKDAY$.<br />

Syntax NAME WEEKDAY$ , <br />

is the number of the weekday according to the WEEKDAY$<br />

function syntax (Monday = 1... Sunday = 7)<br />

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

(Default: Full English name in lowercase characters, i.e.<br />

Monday, Tuesday etc).<br />

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

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

corresponding numbers in connection with WEEKDAY$ function.<br />

Example This example shows how to make the printer return the name of the weekday<br />

as an English 3-letter abbreviation:<br />

10 FORMAT DATE$ ", MM/DD/YY"<br />

20 DATE$="990601"<br />

30 NAME WEEKDAY$ 1, "Mon"<br />

40 NAME WEEKDAY$ 2, "Tue"<br />

50 NAME WEEKDAY$ 3, "Wed"<br />

60 NAME WEEKDAY$ 4, "Thu"<br />

70 NAME WEEKDAY$ 5, "Fri"<br />

80 NAME WEEKDAY$ 6, "Sat"<br />

90 NAME WEEKDAY$ 7, "Sun"<br />

100<br />

RUN<br />

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

yields:<br />

Sun, 06/01/99<br />

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

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

Saved successfully!

Ooh no, something went wrong!