IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


NETAPPSEL Delete


The function removes an application from the specified userid application 
selector list.   
Syntax 


MyRc = NetDelete(NETAPPSEL, SrvName, UserId)
MyRc = NetDelete(NETAPPSEL, SrvName, UserId, ApplicationName)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
UserId            The userid to be deleted 
ApplicationName   The application name to remove from the application 
                  selection list. Using the function call without an 
                  application name removes all applications from the 
                  specified userid application selector list 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   


/* Delete a application from user dekstop */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETAPPSEL = 32
SrvName = '\\ILIDC'
UserId = 'WS12345'
ApplicationName = 'LIVA'

myRc = NetDelete(NETAPPSEL, SrvName, UserId, ApplicationName)

if myRc <> '0' then do
 say 'Got error from NetDelete() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Application removed from desktop successfully'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Application removed from desktop successfully



Inf-HTML End Run - Successful