Einzelnen Beitrag anzeigen
Alt 13.10.2012, 10:05   #165
leecher
Moderator
SETTIME

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

Set the title of one of the time zones

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

When <desk:F8> is displayed, three time zones are shown, complete with
their titles.

SETTIME changes one of these titles to whatever the developer requires.
Combined with the SETZONE function, the timezones can be altered from
within a program.

S y n t a x

Code:
bool = call('SETTIME' , timezone , string)
P a r a m e t e r

timezone - is a number in the range 0 - 2.

0 = Current Time time zone
1 = Time Zone 1
2 = Time Zone 2

string - the new timezone title. Strings are truncated to 15 characters

R e t u r n s

A boolean value.

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

Code:
attach 'TIME'
put call ('SETTIME' , 0 , 'Paris')   ! sets 'Current Time' to 'Paris' 
detach 'TIME'
Q u e r v e r w e i s / C r o s s R e f e r e n c e
GETTIME
SETZONE
leecher ist offline   Mit Zitat antworten