[Lazarus] Just wondering about incrementing integer values....

Michael Van Canneyt michael at freepascal.org
Fri Oct 18 11:19:39 CEST 2013

On Fri, 18 Oct 2013, samps okholm wrote:

> Why is
> radiogroup1.ItemIndex:=radiogroup1.ItemIndex+1;
> working but
> inc(radiogroup1.itemindex);   //unit1.pas(36,71) Error: Can't take the address of constant expressions
> is not?

Because itemindex is a property, not a variable. Inc() needs a variable.


More information about the Lazarus mailing list