Can't set initial value of property

Posted by tbergman on 30-Nov-2016 13:25

The following code does not compile. It seems that it's not possible to set an initial value for a property defined as a .Net enum. Is there something I'm missing?

DEFINE PUBLIC PROPERTY SelectionType AS Infragistics.Win.UltraWinGrid.SelectType
  INITIAL Infragistics.Win.UltraWinGrid.SelectType:Single 
    GET.
    SET.

All Replies

Posted by Peter Judge on 30-Nov-2016 13:29

Sadly that’s not a .NET thing. You cannot set variables or property initial values to type references.

Posted by Fernando Souza on 30-Nov-2016 13:29

You are not missing anything. That is not allowed for the INITIAL phrase.

Posted by Mike Fechner on 30-Nov-2016 13:34

Unfortunately the ABL can’t initialize properties that are not ABL primitive value types.
 
You must assign the initial value in the class constructor.
 
L
 

This thread is closed