home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 4
/
CD_Magazyn_EXEC_nr_4.iso
/
Recent
/
util
/
libs
/
IdentifyDev.lha
/
Identify
/
arexx
/
expansions.ify
< prev
next >
Wrap
Text File
|
1997-04-24
|
1KB
|
45 lines
/*****************************************************************
** **
** expansions.ify rexxidentify.library demonstration **
** **
******************************************************************
**
** (c) 1997 by Richard Körber -- All Rights Reserved
**
** You may use this example freely for your own programs.
**
*/
/* Add the library functions */
CALL AddLib("/libs/rexxidentify.library",0,-30,0)
/* Get the number of present expansions */
number = ID_NumBoards()
SAY "I found" number "boards inside this computer:"
SAY ""
/* Check these expansions */
DO i=0 TO ID_NumBoards()-1
manuf = ID_Expansion(i,"MANUF")
prod = ID_Expansion(i,"PROD")
class = ID_Expansion(i,"CLASS")
address = ID_Expansion(i,"ADDRESS")
size = ID_Expansion(i,"SIZE")
shut = ID_Expansion(i,"SHUTUP")
size = Right(size,6)||"K" /* Some small formatting */
IF shut='1' /* And human readability */
THEN shut="SHUT UP"
ELSE shut="working"
SAY i+1||":" address size ">" manuf prod class "("||shut||")"
END
SAY ""
EXIT