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

samps okholm sampsokholm at gmail.com
Fri Oct 18 11:15:37 CEST 2013


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?


cheers
Samps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131018/57e67a88/attachment-0002.html>


More information about the Lazarus mailing list