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

samps okholm sampsokholm at gmail.com
Fri Oct 18 11:30:14 CEST 2013


Thanks. Makes sense now you put it so concisely...


:-)
Samps


On Fri, Oct 18, 2013 at 7:49 PM, Michael Van Canneyt <michael at freepascal.org
> wrote:

>
>
> 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.
>
> Michael.
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131018/40e54565/attachment-0003.html>


More information about the Lazarus mailing list