script_available
status.i4.v = script_available(pa_name.i1a.r, num_scripts.i4.r)
This routine determines how many scripts are available for the
requested program.
pa_name null-terminated process name
(up to PROCESS_NAME_LEN characters)
num_scripts returned number of scripts available
This function returns ACNET status values as follows:
OK success
CBS_MEMFAIL error in allocating dynamic memory
CBS_NOTENB caller is a temporary application
SQL_xxx error accessing script database table
This function requires the following include files:
cnsparam_h, cbslib_h, acnet_errors_h
Related functions:
script_get_dir, script_menu, script_select, script_create,
script_delete, script_lock, script_unlock, script_accept, script_stop,
script_check, script_status
C/C++ usage:
static const char pa_name[PROCESS_NAME_LEN+1] = "PA0052";
int status;
int num_scripts;
status = script_available(pa_name,&num_scripts);