Open topic with navigation
strFunc. The parameter list,
params object parameters, is passed as a comma separated list of values. Pass parameters only of data types that can be stored in a
Do not record a method unless the test object to which the custom control is mapped has a method with this signature. If the method exists but is inappropriate for the custom control, override the existing implementation.
If the required method does not exist in the test object, create a new test object method. For details, see the
UFT .NET Add-in Extensibility Developer Guide.
For some events or messages, it is impossible to know whether to write the method to the script until the next event or message is received. Handle recording logic with the eMode parameter.
To use symbolic values such as
micRightBtn, pass the fully qualified symbol as a string. For example, pass
"MicScriptConstant::micRightBtn". The quote marks are part of the parameter syntax. If you attempt to use the symbolic values directly, such as
micRightBtn, they are interpreted as literal strings.
'DeclarationProtected Sub RecordFunction( _ ByVal strFunc As System.String, _ ByVal eMode As RecordingMode, _ ByVal ParamArray parameters() As System.Object _ )