|
|
#61 |
|
Moderator
|
OISPRINT
E r g e b n i s / R e s u l t
The routine returns true if c is a particular representation of a printable character. B e s c h r e i b u n g / D e s c r i p t i o n OISPRINT returns a TRUE if c is a printable character, including the space character (0x20 – 0x7E). The routine returns FALSE if c does not satisfy the test condition. S y n t a x Code:
value = call ('OISPRINT' , c)c - Character to test R e t u r n s TRUE, if the character is a printable character, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'CTYPE'
put call ('OISPRINT' , ' ') ! returns true, as it's a printable character
put call ('OISPRINT' , 'Ç') ! returns false, as it's not a printable character
detach 'CTYPE' |
|
|
|
|
|
#62 |
|
Moderator
|
OISPUNCT
E r g e b n i s / R e s u l t
The routine returns true if c is a particular representation of a punctuation character. B e s c h r e i b u n g / D e s c r i p t i o n OISPUNCT returns a TRUE for any printable character that is not a space character or a character for which OISALNUM is true. The routine returns FALSE if c does not satisfy the test condition. S y n t a x Code:
value = call ('OISPUNCT' , c)c - Character to test R e t u r n s TRUE, if the character is a punctuation character, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'CTYPE'
put call ('OISPUNCT' , '.') ! returns true, as it's a punctuation character
put call ('OISPUNCT' , 'A') ! returns false, as it's not a punctuation character
detach 'CTYPE' |
|
|
|
|
|
#63 |
|
Moderator
|
OISSPACE
E r g e b n i s / R e s u l t
The routine returns true if c is a particular representation of a space character. B e s c h r e i b u n g / D e s c r i p t i o n OISSPACE returns a TRUE if c is a white-space character (0x09 – 0x0D or 0x20). The routine returns FALSE if c does not satisfy the test condition. S y n t a x Code:
value = call ('OISSPACE' , c)c - Character to test R e t u r n s TRUE, if the character is a white-space character, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'CTYPE'
put call ('OISSPACE' , ' ') ! returns true, as it's a white-space character
put call ('OISSPACE' , 'A') ! returns false, as it's not a white-space character
detach 'CTYPE' |
|
|
|
|
|
#64 |
|
Moderator
|
OISUPPER
E r g e b n i s / R e s u l t
The routine returns true if c is a particular representation of an uppercase letter. B e s c h r e i b u n g / D e s c r i p t i o n OISUPPER returns a TRUE if c is an uppercase character (A – Z). The routine returns FALSE if c does not satisfy the test condition. S y n t a x Code:
value = call ('OISUPPER' , c)c - Character to test R e t u r n s TRUE, if the character is a white-space character, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'CTYPE'
put call ('OISUPPER' , 'A') ! returns true, as it's a uppercase character
put call ('OISUPPER' , 'a') ! returns false, as it's not a uppercase character
detach 'CTYPE' |
|
|
|
|
|
#65 |
|
Moderator
|
OISXDIG
E r g e b n i s / R e s u l t
The routine returns true if c is a particular representation of a hexadecimal digit. B e s c h r e i b u n g / D e s c r i p t i o n OISXDIG returns a TRUE if c is a hexadecimal digit (A – F, a – f, or 0 – 9). The routine returns FALSE if c does not satisfy the test condition. S y n t a x Code:
value = call ('OISXDIG' , c)c - Character to test R e t u r n s TRUE, if the character is a hexadecimal character, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'CTYPE'
put call ('OISXDIG' , 'A') ! returns true, as it's a hexadecimal character
put call ('OISXDIG' , '?') ! returns false, as it's not a hexadecimal character
detach 'CTYPE' |
|
|
|
|
|
#66 |
|
Moderator
|
COPY
E r g e b n i s / R e s u l t
The routine copies file src to dst. B e s c h r e i b u n g / D e s c r i p t i o n COPY copies file src to dst, if src exists and dst doesn't exist. S y n t a x Code:
boolean = call ('COPY' , src, dst)src - Source file to copy dsr - Destination filename to copy src to. R e t u r n s TRUE, if copying succeeded, FALSE otherwise. B e i s p i e l / E x a m p l e Code:
attach 'COPY'
put call ('COPY' , 'FILE1.TXT', 'FILE2.TXT') ! copies file1.txt to file2.txt and returns TRUE if it succeeded
detach 'COPY' |
|
|
|
|
|
#67 |
|
Moderator
|
INITCAPS
E r g e b n i s / R e s u l t
Convert the text string to have INITIAL CAPITALS B e s c h r e i b u n g / D e s c r i p t i o n This language call contains 3 string functions which can be used within Database, Spreadsheet, or OAIII Programmer/Compiler. These functions can be used to change the format of a text string. Maximum characters that can be input is 128. S y n t a x Code:
capstr = call ('INITCAPS' , str)str - String where the first character gets capitalized. R e t u r n s A copy of the string str with the first character capitalized. B e i s p i e l / E x a m p l e Code:
attach 'CAPS'
put call ('INITCAPS' , 'abcde') ! returns Abcde
detach 'CAPS' |
|
|
|
|
|
#68 |
|
Moderator
|
UPPER
E r g e b n i s / R e s u l t
Convert the text string to ALL Upper Case B e s c h r e i b u n g / D e s c r i p t i o n This language call contains 3 string functions which can be used within Database, Spreadsheet, or OAIII Programmer/Compiler. These functions can be used to change the format of a text string. Maximum characters that can be input is 128. S y n t a x Code:
capstr = call ('UPPER' , str)str - String where the characters get converter to upper case. R e t u r n s A copy of the string str with all characters to be converter to upper case. B e i s p i e l / E x a m p l e Code:
attach 'CAPS'
put call ('UPPER' , 'abcde') ! returns ABCDE
detach 'CAPS' |
|
|
|
|
|
#69 |
|
Moderator
|
LOWER
E r g e b n i s / R e s u l t
Convert the text string to ALL Lower Case. B e s c h r e i b u n g / D e s c r i p t i o n This language call contains 3 string functions which can be used within Database, Spreadsheet, or OAIII Programmer/Compiler. These functions can be used to change the format of a text string. Maximum characters that can be input is 128. S y n t a x Code:
lwrstr = call ('LOWER' , str)str - String where the characters get converted to lowercase. R e t u r n s A copy of the string str with all characters in lowercase. B e i s p i e l / E x a m p l e Code:
attach 'CAPS'
put call ('LOWER' , 'ABCDE') ! returns abcde
detach 'CAPS' |
|
|
|
|
|
#70 |
|
Moderator
|
GETCH
E r g e b n i s / R e s u l t
Get a character from the console without echo. B e s c h r e i b u n g / D e s c r i p t i o n The GETCH function reads a single character from the console without echoing. S y n t a x Code:
key = call ('GETCH')R e t u r n s The character pressed. Special keys are mapped: Code:
K_DO = F10 K_UNDO = ESC K_HELP = F1 K_MENU = F2 K_PRINT = F3 K_SEARCH = F4 K_CHANGE = F6 K_RET = RETURN K_DESK = F8 K_COPY = F5 K_CUT = ALT+F5 K_PASTE = F7 K_PLACE = ALT-F7 K_SELECT = F9 K_DESELECT = ALT+F9 K_DEL = DELETE K_INS = INS K_LINE_DEL = STRG+BACKSPACE K_LINE_INS = STRG+RETURN K_BACKSPACE = BACKSPACE K_UP = UP K_DOWN = DOWN K_LEFT = LEFT K_RIGHT = RIGHT K_HOME = HOME K_END = END K_TAB = TAB K_BACK_TAB = SHIFT+TAB K_WORD_FWD = STRG+RECHTS K_PG_UP = PAGE UP K_PG_DOWN = PAGE DOWN K_WORD_BACK = STRG+LEFT K_JUMP_LEFT = STRG-POS1 K_JUMP_RIGHT = STRG-ENDE K_HYPER_HELP K_PRTSCREEN = PRTSCREEN K_ASCII = ALT+F4 K_FORMAT K_MACRO = ALT+F8 K_EXECUTE = ALT+F10 K_USER1 = SHIFT+F1 K_USER2 = SHIFT+F2 K_USER3 = SHIFT+F3 K_USER4 = SHIFT+F4 K_USER5 = SHIFT+F5 K_USER6 = SHIFT+F6 K_USER7 = SHIFT+F7 K_USER8 = SHIFT+F8 Code:
attach 'CONIO'
put call ('GETCH') ! returns the key pressed
detach 'CONIO' |
|
|
|