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

:-)
Samps


On Fri, Oct 18, 2013 at 7:49 PM, Michael Van Canneyt <[email protected]
> 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
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to