SetCurrentObjectProperty method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Sets the value of a specified property of the current object in an IDO collection.

Syntax

object.SetCurrentObjectProperty( string1, string2 )

  Part   Description
object Required. A reference to a valid IDO collection object.
string1 Required. The name of the current object property.
string2 Required. The value of the current object property.

Remarks

This method does not mark the property as "modified" or notify dependents (such as components bound to the property) to refresh.

Note:  The difference between this and the SetCurrentObjectPropertyInternal method is that this one sets the value to an interpretable value that might, for instance, be localized, whereas the SetCurrentObjectPropertyInternal method sets it to a system internal value.

This is particularly applicable to date/time values. Localized date values can be displayed, for example, as dd/mm/yyyy, mm/dd/yyyy, or mm/dd/yy. When such a value is used, the system tries to interpret the appropriate display value for the property. A system internal value, however, uses the format yyyy/mm/dd, and it never changes. So, to use the internal value, your input value must conform to this format.

Related topics