SetCurrentObjectPropertyPlusModifyRefreshInternal method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Sets the internal 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.SetCurrentObjectPropertyPlusModifyRefreshInternal( 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 internal 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:

  • SetCurrentObjectPropertyInternal
  • SetCurrentObjectPropertyModified
  • SetCurrentObjectModified
  • NotifyDependentsToRefresh
注意: The difference between this and the SetCurrentObjectPropertyPlusModifyRefresh method is that this one sets the value to a system internal value, whereas the SetCurrentObjectPropertyPlusModifyRefresh method sets it to an interpretable value that might, for instance, be localized.

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.

相关主题