[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-----------------+########################################################
#+-| CHK_INSTALLED() |---------------------------------------------------+####
#| +-----------------+ Returns TRUE if specified multiplex ID is present |####
#+-----------------------------------------------------------------------+####
##############################################################################
##############################################################################
#+--| Summary |-------------+#################################################
#| #INCLUDE tsr.hdr |#################################################
#+--------------------------+#################################################
##############################################################################
##############################################################################
#+--| Syntax |--------------------------------------+#########################
#| FUNCTION LOGICAL chk_installed PROTOTYPE |#########################
#| PARAMETERS VALUE UINT multiplex_id |#########################
#+--------------------------------------------------+#########################
##############################################################################
##############################################################################
#####+---| Description |-----------------------------------------------+######
#####| The chk_installed() function returns TRUE if multiplex_id is |######
#####| installed. A "multiplex id" is a unique number assigned to a |######
#####| TSR program. By using the multiplex id, you can verify whether |######
#####| or not a TSR program is installed. |######
#####| --------------------------------------------------------------- |######
#####| The chk_installed() function does NOT set the multiplex id to |######
#####| multiplex_id if the id is not found. Use tsr_install() to |######
#####| install a multiplex id. |######
#####+-----------------------------------------------------------------+######
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * See if another multiplex ID is installed. |#########
#########| * The multiplex ID could have been installed by |#########
#########| * another program. |#########
#########| |#########
#########| IF .NOT. chk_installed( &PROG_ID ) |#########
#########| ? "TSR is not installed" |#########
#########| ENDIF |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Find all multiplex numbers. |#########
#########| |#########
#########| i = 0 |#########
#########| REPEAT |#########
#########| IF chk_installed( i ) |#########
#########| ?? "ID #",i |#########
#########| ENDIF |#########
#########| i = i + 1 |#########
#########| UNTIL i = 0 |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
activate_procs
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson