UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 275

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 274
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 273
Chapter 2 Program Instructions
WEEKDAY
Field of Application
Function returning the weekday of a speci ed date.
Syntax WEEKDAY(<sexp>)
<sexp> is the date in DATE$ format from which the weekday
will be returned.
Remarks
This function returns the weekday as a numeric constant:
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday
The date should be entered according to the syntax for the DATE$ variable,
that is in the following order:
YY = Year Last two digits (for example 2000 = 00)
MM = Month Two digits (01-12)
DD = Day Two digits (01-28|29|30|31)
Example: December 1, 2000 is entered as "001201".
The built-in calendar corrects illegal values for the years 1980-2048, for
example the illegal date 001232 will be corrected to 010101.
Example
In this example the weekday for the current date is printed on the screen
of the host (another way is to use NAME WEEKDAY$ statement and
WEEKDAY$ function):
10 B$=DATE$
20 A% = WEEKDAY (B$)
30 IF A% = 1 THEN PRINT "MONDAY"
40 IF A% = 2 THEN PRINT "TUESDAY"
50 IF A% = 3 THEN PRINT "WEDNESDAY"
60 IF A% = 4 THEN PRINT "THURSDAY"
70 IF A% = 5 THEN PRINT "FRIDAY"
80 IF A% = 6 THEN PRINT "SATURDAY"
90 IF A% = 7 THEN PRINT "SUNDAY"
RUN
yields for example:
THURSDAY
Vedere la pagina 274
1 2 ... 270 271 272 273 274 275 276 277 278 279 280 ... 331 332

Commenti su questo manuale

Nessun commento