RPC HELP TVCEdit SilentChangeVerify

From VistApedia
Jump to: navigation, search

RPC Broker Help Home

SilentChangeVerify Function

The SilentChangeVerify function can be used to change the Verify code for a user without any windows being displayed.

Declaration

   function SilentChangeVerify(RPCBroker: TRPCBroker; OldVerify, NewVerify1, NewVerify2: String; var Reason: String): Boolean;

Arguments:

  • RPCBroker -- The current instance of the Broker for the account for which the Verify code is to be changed.
  • OldVerify -- The string representing the current Verify code for the user.
  • NewVerify1 -- A string representing the new Verify code for the user.
  • NewVerify2 -- A second independent entry for the string representing the new Verify code for the user.
  • Reason -- A string that on return will contain the reason why the Verify code was not changed (if the result value is False).

Result:

The return value indicates whether the Verify code was successfully changed (True) or not (False). If the result is False, the reason for the failure will be in the Reason argument.