WinStudio
IWSIDOCollection interface
Returns a Boolean value indicating whether the current object in a collection is read-only.
object.IsCurrentObjectReadOnly( )
Part |
Description |
object | The name of a valid IDO collection object. |
This method applies to an entire record (row), not just a single column or component within the grid. To get a row to be read-only, you must have:
A return value of:
If the specified IDO collection has focus, use this method. If the specified IDO collection might not have focus, use the IsObjectReadOnly method.
Sub Main() If ThisForm.PrimaryIDOCollection.IsCurrentObjectReadOnly() Then Application.ShowMessage("This field is read-only.") End If End Sub