Antwort schreiben...
 
Themen-Optionen Thema durchsuchen
Alt 15.11.2007, 21:01   #51
Heinz_Richartz
Registrierter Benutzer
In der anhängenden Datei findet Ihr ein kleines Beispielprogramm für ein 'Nicht-OA-Menü'. Darin kann dann auch die Leertaste benutzt werden.

Heinz
Angehängte Dateien
Dateityp: txt TEST.txt‎ (924 Bytes, 33x aufgerufen)
Heinz_Richartz ist offline   Mit Zitat antworten
Alt 11.09.2012, 15:59   #52
waldbauer.com
Entwickler
Dank Alfred gibt es jetzt auch die Hints+Tips Datenbank von Malcolm Smith zum Stöbern:
http://www.waldbauer.com/tmp/tips.php
waldbauer.com ist offline   Mit Zitat antworten
Alt 09.10.2012, 20:34   #53
leecher
Moderator
OSA ASC

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

Language Call Application (and source) to convert a character to the ASCII number equivalent.

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

This application will return (as an integer) the ASCII number
equivalent of a character (it is the opposite to the CHR function).
It is designed to be used within Programmer/Compiler but could be 'built'
to be used from other facilities.

S y n t a x

Code:
value = call ('ASC' , character)
P a r a m e t e r

character - Character, whose ASCII value you want to get

R e t u r n s

An integert representing the ASCII value of the character supplied.

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

Code:
attach "asc.oac"
counter = 1 
charin = "A"
while counter < 10 
   asciinum = call("asc",charin)
   put column 10 asciinum, column 15 charin, do newline 
   asciinum = asciinum + 1
   charin = chr(asciinum) 
   counter = counter + 1
end while 
b=true;get b 
detach "asc.oac"
Angehängte Dateien
Dateityp: oac ASC.OAC‎ (13.0 KB, 4x aufgerufen)
Dateityp: zip asc.zip‎ (13.6 KB, 3x aufgerufen)
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 20:46   #54
leecher
Moderator
OISALPHA

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 alphabetic character.

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

OISALPHA returns a TRUE if c is within the ranges A – Z or a – z.
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISALPHA' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is alphabetic, FALSE otherwise

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

Code:
attach 'CTYPE'
put call ('OISALPHA' , 'A') ! returns true, as it's alphabetic
put call ('OISALPHA' , '9') ! returns false, as it's not alphabetic
detach 'CTYPE'
Angehängte Dateien
Dateityp: oac CTYPE.OAC‎ (13.5 KB, 3x aufgerufen)
Dateityp: zip ctype.zip‎ (6.5 KB, 3x aufgerufen)
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 20:50   #55
leecher
Moderator
OISASCII

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 ASCII character.

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

OISASCII returns a TRUE if c is an ASCII character (in the range 0x00 – 0x7F).
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISASCII' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is an ASCII character, FALSE otherwise

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

Code:
attach 'CTYPE'
put call ('OISASCII' , 'A') ! returns true, as it's an ASCII character
put call ('OISASCII' , 'Ç') ! returns false, as it's not an ASCII character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 20:56   #56
leecher
Moderator
OISALNUM

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 alphanumeric character.

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

OISALNUM returns a TRUE if either OISALPHA or OISDIGIT is true for c, that is, if c is within the ranges A – Z, a – z, or 0 – 9.
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISALNUM' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is an alphanumeric character, FALSE otherwise

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

Code:
attach 'CTYPE'
put call ('OISALNUM' , 'A') ! returns true, as it's an alphanumeric character
put call ('OISALNUM' , '?') ! returns false, as it's not an alphanumeric character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 21:02   #57
leecher
Moderator
OISCNTRL

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 control character.

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

OISCNTRL returns a TRUE if c is a control character (0x00 – 0x1F or 0x7F).
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISCNTRL' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is a control character, FALSE otherwise

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

Code:
attach 'CTYPE'
put call ('OISCNTRL' , chr(13)) ! returns true, as it's a control character
put call ('OISCNTRL' , '?') ! returns false, as it's not a control character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 21:04   #58
leecher
Moderator
OISDIGIT

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 decimal-digit character.

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

OISDIGIT returns a TRUE if c is a decimal digit (0 – 9).
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISDIGIT' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is a decimal digit, FALSE otherwise

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

Code:
attach 'CTYPE'
put call ('OISDIGIT' , '9') ! returns true, as it's a digit
put call ('OISDIGIT' , '?') ! returns false, as it's not a digit
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 21:08   #59
leecher
Moderator
OISGRAPH

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 other than a space.

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

OISGRAPH returns a TRUE if c is a printable character other than a space.
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISGRAPH' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is a printable character other than a space, FALSE otherwise.

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

Code:
attach 'CTYPE'
put call ('OISGRAPH' , 'A') ! returns true, as it's a printable character
put call ('OISGRAPH' , 'Ç') ! returns false, as it's not a printable character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten
Alt 09.10.2012, 21:10   #60
leecher
Moderator
OISLOWER

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 lowercase character.

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

OISLOWER returns a TRUE if c is a lowercase character (a – z).
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISLOWER' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is a lowercase character, FALSE otherwise.

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

Code:
attach 'CTYPE'
put call ('OISLOWER' , 'a') ! returns true, as it's a lowercase character
put call ('OISLOWER' , 'A') ! returns false, as it's not a lowercase character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten


Antwort schreiben...

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche