WinStudio
IWSIDOCollection interface
Enables/Disables the ability to refresh a specified IDO collection, or returns a value indicating whether the collection can be refreshed.
object.RefreshEnabled = Boolean
Part |
Description |
object | Required. A reference to a valid IDO collection object. |
Boolean | Required. Determines whether the collection can
be refreshed:
|
object.RefreshEnabled
Part |
Description |
object | Required. A reference to a valid IDO collection object. |
When the Refresh option is disabled, the user cannot refresh the collection using:
For the get syntax, a return value of:
Sub Main() Dim oCache As IWSIDOCollection Dim sOption As String oCache = ThisForm.CurrentIDOCollection sOption = Trim(GetParameter(0)) If sOption = "REFRESH" Then oCache.RefreshEnabled = True End If End Sub
Sub Main() Dim oCache As IWSIDOCollection oCache = ThisForm.CurrentIDOCollection If oCache.RefreshEnabled Then oCache.RefreshEnabled = False Application.ShowMessage("You cannot refresh the collection at this time.") Else oCache.RefreshEnabled = True Application.ShowMessage("You can now refresh the collection.") End If End Sub