Kbase P140319: Read-only Property in an ABL User Control causes error 13824
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/26/2009 |
|
Status: Unverified
SYMPTOM(s):
Read-only Property in an ABL User Control causes error 13824
Cannot update <Arg1> because it is a property that is read-only. (13824)
Read-only Property is defined in the ABL User Control as follows:
DEFINE PUBLIC PROPERTY <myProperty> AS CHARACTER NO-UNDO
GET():
END GET.
Error occurs after ABL User Control has been added to a form and the form saved
FACT(s) (Environment):
OpenEdge 10.2A
Windows
CAUSE:
Architect attempts to SET the read-only Property in the InitializeComponent method of the form:
THIS-OBJECT:<UserControl>:<myProperty> = ?.
FIX:
Add a dummy SET to the Property:
DEFINE PUBLIC PROPERTY <myProperty> AS CHARACTER NO-UNDO
GET():
END GET.
SET.