SetCurrentObjectPropertyPlusModifyRefresh method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Sets the value for a property of the current object, marks the property modified, marks the object modified, and notifies any dependents, such as components bound to the property, to refresh.

Syntax

object.SetCurrentObjectPropertyPlusModifyRefresh( string1, string2 )

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

Remarks

For information about other methods and properties that you can use to set the value of a property or perform one or more of the other operations performed by this method, see the Related Topics.

This method is equivalent to executing the following four low-level methods:

  • SetCurrentObjectProperty
  • SetCurrentObjectPropertyModified
  • SetCurrentObjectModified
  • NotifyDependentsToRefresh
Note:  The difference between this and the SetCurrentObjectPropertyPlusModifyRefreshInternal method is that this one sets the value to an interpretable value that might, for instance, be localized, whereas the SetCurrentObjectPropertyPlusModifyRefreshInternal 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.