If the clients logon to different domains, it may be easier and more productive to use sub-scripts. If there is unique functionality that occurs for each different domain, why should everyone load and execute code that does not pertain to them? Also if you have to edit the functionality of domain "TEST1" and make a syntax error, then the script will die for everyone.

I suggest the you use a "CALL" command to call a sub-scripts named after the domain.

;Get domain name from registry
$Domain = ReadValue(...
Call $Domain + ".kix"

This permits to edit the functionality of a particular domain without affecting anyone else.

[ 05 May 2002, 23:42: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/