Icmdgetvar - Novell NETWARE 6-DOCUMENTATION Manual

Table of Contents

Advertisement

ICMDGetVar

Function
Return
Description
Example
Use the ICMDGetVar function to get the value of a script variable.
int ICMDGetVar (char *variableName, char *variableValue)
*variableName: Pointer to name of variable
*variableValue: Buffer containing value of variable; must be at least 128
bytes
0 if successful; non-zero error code if unsuccessful or if variableName does
not exist.
ICMDGetVar is a function exported by ICMD.NLM that another NLM can
call. This lets the NLM set a variable within a script being executed by
ICMD.NLM so the NLM can communicate with the script, changing the
control flow, etc.
If a script looks like this:
SetVar myvar, "Hello"
NLMExec 1, mynlm
and if MYNLM.NLM has code as follows:
char buffer[128];
ICMDGetVar("myvar", buffer);
then the value in buffer would be the null-terminated string:
"Hello".
Installation Scripts for NetWare 155

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETWARE 6-DOCUMENTATION and is the answer not in the manual?

This manual is also suitable for:

Netware 6

Table of Contents