#1 2021-05-27 06:29:24

wienani
Member
Registered: 2012-08-31
Posts: 29

How to Insert by Index Array in TDocVariant ?

Only find Add only

Offline

#2 2021-05-27 07:18:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: How to Insert by Index Array in TDocVariant ?

Do you mean you need an TDocVariantData.InsertItem() function because AddItem() is not enough?

Offline

#3 2021-05-27 17:20:17

wienani
Member
Registered: 2012-08-31
Posts: 29

Re: How to Insert by Index Array in TDocVariant ?

Yes Ab, I use array in TDocVariant to supply TcxCustomDataSource in cxGrid from DevExpress, their grid support Add and Insert feature

Last edited by wienani (2021-05-27 17:20:38)

Offline

#4 2021-05-28 08:22:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: How to Insert by Index Array in TDocVariant ?

I have just added an optional aIndex parameter to Insert instead of Add in mORMot 2.
https://github.com/synopse/mORMot2/comm … 458720055b

Offline

#5 2021-05-28 15:10:13

wienani
Member
Registered: 2012-08-31
Posts: 29

Re: How to Insert by Index Array in TDocVariant ?

Ow, thx u very much

Last edited by wienani (2021-05-28 15:10:54)

Offline

Board footer

Powered by FluxBB