RPC HELP TCCOWRPCBroker IsUserCleared Example

From VistApedia
Jump to: navigation, search

RPC Broker Help Home

IsUserCleared Example

In the event handler for the Commit event of the ContextorControl, developers can check whether or not the user was previously defined, and is now undefined or null. In this case, developers would want to do any necessary processing, then halt.

   Procedure TForm1.CommitHandler(Sender: TObject)
   begin
     with CCOWRPCBroker1 do begin
       if WasUserDefined and IsUserCleared then begin
         // do any necessary processing before halting
         halt;
       end;
     end;
   end;