Previous External Development Guide: IDL Internals: Variables Next

Copying Variables

To copy the contents of one variable to another, use the IDL_VarCopy() function:

void IDL_VarCopy(IDL_VPTR src, IDL_VPTR dst)  

Arguments src and dst are the source and destination, respectively.

IDL_VarCopy() uses the following rules when copying variables:

  IDL Online Help (March 06, 2007)