Antwort schreiben...
 
Themen-Optionen Thema durchsuchen
Alt 10.10.2012, 02:17   #81
leecher
Moderator
C_FSIZE

E r g e b n i s / R e s u l t

The C_FSIZE function returns the size of a file previously opened with the C_OPEN function

B e s c h r e i b u n g / D e s c r i p t i o n

The C_FSIZE function gets the size of the file associated with the file descriptor fd.

S y n t a x

Code:
res = call ('C_FSIZE' , fd)
P a r a m e t e r

fd - The file descriptor you obtained from C_OPEN

R e t u r n s

C_FSIZE returns the number of bytes of the open file.

B e i s p i e l / E x a m p l e

Code:
attach 'FILE0'
attach 'FILE1'
fd = CALL ("C_OPEN", "FILE.TXT", "r")
PUT CALL ("C_FSIZE", fd) ! Returns the size of FILE.TXT
b = CALL("C_CLOSE", fd)
detach 'FILE0'
detach 'FILE1'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:24   #82
leecher
Moderator
DATCONV5

E r g e b n i s / R e s u l t

Returns a human readable date in the form [day] [month name] [year].

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns a human readable form of the date. If the function was passed a date of the format '11.10.2012' it would return '11th October 2012'

S y n t a x

Code:
value = call ('DATCONV5' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

A string containing the human readable form of the given date.

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONV5' , sysdate) ! prints today's date
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:30   #83
leecher
Moderator
DATCONV6

E r g e b n i s / R e s u l t

Returns the day of week of a given date.

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns the day of week as a number, starting at 0 for Sunday, so 1 is Monday, 2 is tuesday, ...
If the function was passed a date of the format '11.10.2012' it would return 4, as this is a Thursday.

S y n t a x

Code:
value = call ('DATCONV6' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing the weekday number.

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONV6' , sysdate) ! prints today's weekday number
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:37   #84
leecher
Moderator
DATCONVA

E r g e b n i s / R e s u l t

Returns an integer in the format [yy][mm]

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns an integer representing the 2-digit year and 2digit-month of the current date.
If the function was passed a date of the format '11.10.2012' it would return 1210, as the year is 2012 and the month is 10.

S y n t a x

Code:
value = call ('DATCONVA' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing [yy][mm]

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONVA' , sysdate) ! prints today's year and month as integer
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:41   #85
leecher
Moderator
DATCONV9

E r g e b n i s / R e s u l t

Returns an integer specifying the day of the year

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns an integer the specifies the day number of the year specified.
If the function was passed a date of the format '11.10.2012' it would return 285, as this day is the 285th day of the year 2012.

S y n t a x

Code:
value = call ('DATCONV9' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing the day of the year.

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONV9' , sysdate) ! prints today's day number within the year
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:44   #86
leecher
Moderator
DATCONVB

E r g e b n i s / R e s u l t

Returns the month's first day of the specified date in the format 01.[mm].[yyyy]

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns a string that represents the first day of the month in the format 01.[mm].[yyyy]
If the function was passed a date of the format '11.10.2012' it would return '01.10.2012', as this is the first of October 2012.

S y n t a x

Code:
value = call ('DATCONVB' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

A string containing the specified date in the format 01.[mm].[yyyy]

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONVB' , sysdate) ! prints the first of the current month
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:47   #87
leecher
Moderator
DATCONVC

E r g e b n i s / R e s u l t

Returns the month's first day of the next month of the specified date in the format 01.[mm].[yyyy]

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns a string that represents the first day of the coming month in the format 01.[mm].[yyyy]
If the function was passed a date of the format '11.10.2012' it would return '01.11.2012', as the first of the next month is the first of November 2012.

S y n t a x

Code:
value = call ('DATCONVC' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

A string containing the first of the month that comes after the specified date in the format 01.[mm].[yyyy]

B e i s p i e l / E x a m p l e

Code:
 
attach 'DATE'     
put call ('DATCONVC' , sysdate) ! prints the first of the current month
detach 'DATE'
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 02:58   #88
leecher
Moderator
TAG

E r g e b n i s / R e s u l t

Liefert den Tag eines Monats aus einem Datum
Returns the day of the month from a date

Same as DATCONV4 function!

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns the day of the month. If the function was passed a date of the format '31/12/96' it would return 31.

S y n t a x

Code:
value = call ('TAG' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing the day.

B e i s p i e l / E x a m p l e

Code:
 
attach 'TAG'     
put call ('TAG' , sysdate) ! prints today's day number     
detach 'TAG'
Angehängte Dateien
Dateityp: oac TAG.OAC‎ (13.5 KB, 3x aufgerufen)
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 03:04   #89
leecher
Moderator
JAHR

E r g e b n i s / R e s u l t

Liefert das Jahr aus einem Datum
Return the year from a date

Same as DATCONV3 function

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns the year. If the function was passed a date of the format '31/12/96' it would return 1996.

S y n t a x

Code:
value = call ('JAHR' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing the year.

B e i s p i e l / E x a m p l e

Code:
 
attach 'JAHR'
put call ('JAHR' , sysdate) ! prints today's year
detach 'JAHR'
Angehängte Dateien
Dateityp: oac JAHR.OAC‎ (13.5 KB, 3x aufgerufen)
leecher ist offline   Mit Zitat antworten
Alt 10.10.2012, 03:10   #90
leecher
Moderator
WOCHE

E r g e b n i s / R e s u l t

Returns the week number of the date given.

B e s c h r e i b u n g / D e s c r i p t i o n

When passed a date, this function returns an integer that represents the number of the week.
If the function was passed a date of the format '11.10.2012' it would return 41, as the given date is within the 41st week of the yer 2012.

S y n t a x

Code:
value = call ('WOCHE' , datefld)
P a r a m e t e r

datefld - any Open Access date

R e t u r n s

An integer containing the number of the week.

B e i s p i e l / E x a m p l e

Code:
 
attach 'WOCHE'     
put call ('WOCHE' , sysdate) ! prints the week number
detach 'WOCHE'
Angehängte Dateien
Dateityp: oac WOCHE.OAC‎ (14.0 KB, 4x aufgerufen)
leecher ist offline   Mit Zitat antworten


Antwort schreiben...

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche