ArraySet InsertItem

Arthur Clemens aclemens at xs4all.nl
Mon Nov 24 10:48:12 CST 2003


On 24-nov-03, at 10:32, Ruslan Zasukhin wrote:

> on 11/24/03 11:24 AM, Arthur Clemens at aclemens at xs4all.nl wrote:
>
>> Is it correct that I cannot use InsertItem with an FBL_ArraySet when
>> the set has no items?
>> If I don't want to crash I must use a check now:
>>
>> if ([self shownCount] == 0)
>>        mShownSet->Append( recordId );
>>    else
>>        mShownSet->InsertItem( newPos, recordId );
>>
>> I think this low level check could be done by Valentina.
>
> In fact yes.
>
> How you insert?
>
>     p->Insert( 1, id )      ?
>
>
> I think you can correct Insert method self and send me correct version.

Right. I insert at position 0. You mean that I the array starts at 1?

Arthur



More information about the Valentina mailing list