[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Variants' (#rtl)

IVarInvokeable.DoFunction

Called for methods that return a result (functions)

Declaration

Source position: variants.pp line 216

function IVarInvokeable.DoFunction(

  var Dest: TVarData;

  const V: TVarData;

  const Name: string;

  const Arguments: TVarDataArray

):Boolean;

Arguments

Dest

  

On return, contains the result of the function

V

  

Variant on which to operate

Name

  

Name of the function to execute

Arguments

  

Array with arguments passed to the function

Function result

Indicate whether the function was executed correctly

Description

DoFunction is called whenever a variant method that returns a result needs to be invoked. The Dest parameter points to the location where the result of the function must be placed; the result must be a variant value.

V is the variant on which the method is being executed. The Name is the name of the function to execute, and Arguments is an array of variant arguments that were passed to the function.

The function must return True if the function was executed correctly, False otherwise.

See also

IVarInvokeable.DoProcedure

  

Called for methods that do not return a result (procedures)

IVarInvokeable.GetProperty

  

Called when a property must be read

IVarInvokeable.SetProperty

  

Called when a property must be set


Documentation generated on: Jun 22 2020