GetCurrentObjectProperty method (WinStudio scripts)

Applies To

IWSIDOCollection interface

Definition

Returns a string containing the value of a specified object property in an IDO collection.

Syntax

object.GetCurrentObjectProperty( string )

  Part   Description
object Required. A reference to an IDO collection object.
string Required. The name of the object property.

Remarks

The return value is a string containing the value of the object property for the currently selected record. For this method, the return value for date and numeric values is based on the current user local settings (as compared with the GetCurrentObjectPropertyInternal method, which uses WinStudio internal settings).

Examples

Sub Main()
   Dim ReturnValue As String
   ReturnValue = ThisForm.PrimaryIDOCollection.GetCurrentObjectProperty("LanguageDesc")
   Application.ShowMessage("Object property value: " & ReturnValue)
End Sub
Sub Main()
   Application.ShowMessage("Object property value: " _
      & ThisForm.GetSecondaryIDOCollection(2).GetCurrentObjectProperty("EventName"))
End Sub
Related topics