LIST.Copy

Previous  Next

 

new-size = LIST.Copy( dst-lid AS HANDLE,

                      src-lid AS HANDLE ) AS INTEGER

 


 

Copies the entries from src-lid to the list specified as the dst-lid growing or shrinking the list as needed to accommodate the src-lid List.

 

Example:

 

DIM hList AS HANDLE

 

hList = LIST.Create( "Kalle", STRING, "Nisse", REAL, 4 )

 

LIST.At( hList, 0, 0, "Kalle Anka      " )

LIST.At( hList, 0, 1, 1.234 )

LIST.At( hList, 1, 0, "Kajsa Anka      " )

LIST.At( hList, 1, 1, 2.345 )

LIST.At( hList, 2, 0, "Joakim von Anka " )

LIST.At( hList, 2, 1, 3.456 )

LIST.At( hList, 3, 0, "Farmor Anka     " )

LIST.At( hList, 3, 1, 4.567 )

 

DIM hList2 AS HANDLE

 

hList2 = LIST.Create( "Kalle", STRING, "Nisse", REAL )

 

LIST.Copy( hList2, hList )