HPlogo MPE/iX Intrinsics Reference Manual > Chapter 9 Command Definitions (MAIL-PUTJCW)

NLFMTLONGCAL

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701
Edition 7 E0300 ♥
Edition 6 E0195

NM and CM callable.

Formats the supplied date according to the long calendar format. The formatting is done according to the template returned by NLINFO itemnum=30.

Syntax



                LV    BA      IV       LA
  NLFMTLONGCAL (date, string, langnum, error)

Parameters


date

logical by value (required)

Contains the date format returned by the CALENDAR intrinsic:

Bits

Value/Meaning

7:9

Day of year

0:7

Years since 1900

string

byte array (required)

Contains the formatted long calendar date, padded with blanks if necessary.

langnum

integer by value (required)

Contains the language ID number, specifying which format to use.

error

logical array (required)

Returns two elements: the first element is the error number; the second element is reserved and always returns 0. The possible error number values are:

Value

Meaning

0

Successful

1

*NLS not installed

2

*Specified language not configured

3

Invalid date value

4

*NLS internal error

5

*NLS internal error

6

*NLS internal error

* Do not apply to calls with a langnum equal to 0 (NATIVE3000/XL).

Operation Notes


Split-stack calls are not permitted.

Related Information


Intrinsics

NLCONVCLOCK, NLCONVCUSTDATE, NLFMTCALENDAR, NLFMTCLOCK, NLFMTCUSTDATE, NLFMTDATE

Manual

Native Language Programmer's Guide




NLFMTDATE


NLFMTNUM