SetProperty

Syntax

SetProperty(&obj, propName, propFormat,  &propValue)

Description

The SetProperty method sets a property of an instantiated PTDiagnostics object to the value that you specify.

Parameters

Parameter Description

&obj

Specify the PTDiagnostics object for which you want to set a property. Typically, you'll specify %This.

propName

Specify as a string the name of the property that you want to set. The values are:

  • hasRowset

  • Purpose

  • Where

propFormat

Specify as a string the data type of the property that you want to set. For hasRowset and Where, specify Boolean. For Purpose, specify string.

&propValue

Provide the property value, in a variable that has the data type specified by the propFormat parameter.

Returns

A Boolean value: True if the property specified by propName exists and can be set in the base class, False if the property can't be set (for example, if the current plug-in is used in a previous release of Diagnostics Framework where that property isn't defined).