Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ValueDescription
readOnlyThe Boolean status of the control’s READONLY status.
existingReadOnlyThe Boolean status of the control’s READONLY status, when Set_Property was run.

See Also

ENABLED property

Example

Code Block
Declare function Get_Property, Set_Property
 
/* retrieve the current READONLY property of an editline and toggle to its Boolean opposite */
 
ctrlName = @window : ".EDITLINE_1"
readOnly = Get_Property(ctrlName,"READONLY")
if readOnly then
   readOnly = 0
end else
   readOnly = 1
end
eReadOnly = Set_Property(ctrlName,"READONLY",readOnly)