PUBLIC logname IF VARTYPE(logname)<>"C" .or. LEN(ALLTRIM(logname))<6 *this.logname is property of application object *if you do not have a property just store it to a variable this.logname=GETENV('LOGIN') && Novell login name logname=this.logname ENDIF IF LEN(ALLTRIM(logname))<6 store "UNKNOWN" TO logname ENDIFbut more reliable is NWUSERNAME (Novell adds that environment variable during installation of the client):
PUBLIC logname IF VARTYPE(logname)<>"C" .or. LEN(ALLTRIM(logname))<6 *this.logname is property of application object *if you do not have a property just store it to a variable this.logname=GETENV('NWUSERNAME') && Novell login name logname=this.logname ENDIF IF LEN(ALLTRIM(logname))<6 store "UNKNOWN" TO logname ENDIFAlso, some windows api work fine. For example, Zenworks application launcher calls a windows api to get the process list. It depends on where the processing is done and which api you are calling.