Usage:
$active=ACTIVESERVICE("WINS")

code:
function activeservice($servicename)
Dim $shellcommand, $xnetexe

$activeservice=0
$servicename=trim($servicename)
if $servicename=''
exit 87
endif
if not isdeclared($TOOLSDIR)
global $TOOLSDIR
endif
...


$servicename in the above example is "WINS" which was passed into the function when used in the script.

The function definition specified what parameters are to be accepted by a function. These parms can be mandatory or optional.

See the FUNCTION command in the docs.

[ 28. May 2003, 00:24: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/