#1 2016-04-04 14:17:52

corchi72
Member
Registered: 2010-12-10
Posts: 232

How to convert TIntegerDynArray to TInt64DynArray

Hi, I have updated the last version of mORMot and unfortunately I found the changes with CreateAndFillPrepare() where I was using the integer array list, now the list has become of Int64 array list, and I have to convert all calls!!!! I used int array because I used too:

1) CopyAndSortIntegerm
2) DeleteInteger
ecc
where the Values are TIntegerDynArray,

How can to covert the array?

you have created a function / procedure referred I  ignore the existence

Thanks corchi

Offline

#2 2016-04-04 14:59:40

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

Re: How to convert TIntegerDynArray to TInt64DynArray

The better is still to use the TID = Int64 values, and not truncate them to 32-bit integers.

I've added new CopyAndSortInt64(), DeleteInt64() and TIntegerDynArrayFrom64() functions.
See http://synopse.info/fossil/info/3c2e63c4f9
and http://synopse.info/fossil/info/34257fbe08

Offline

#3 2016-04-04 16:03:04

corchi72
Member
Registered: 2010-12-10
Posts: 232

Re: How to convert TIntegerDynArray to TInt64DynArray

thanks very much!!!

Offline

Board footer

Powered by FluxBB