Viva Clipper !

AClone()

Advertisements

ACLONE()

Duplicate a multidimensional array

Syntax

      ACLONE(<aSource>) --> aDuplicate

Arguments

<aSource> Name of the array to be cloned.

Returns

<aDuplicate> A new array pointer reference complete with nested array values.

Description

This function makes a complete copy of the array expressed as <aSource> and return a cloned set of array values. This provides a complete set of arrays values for all dimensions within the original array <aSource>

Examples

      LOCAL aOne, aTwo
      aOne := { "Harbour"," is ","POWER" }
      aTwo := AClone( aOne )       // Result: aTwo is {"Harbour"," is ","POWER"}
      aOne[ 1 ] := "The Harbour Compiler"
      // Result:
      // aOne is { "The Harbour Compiler", " is ", "POWER" }
      // aTwo is { "Harbour"," is ","POWER" }

Compliance

CA-Cl*pper will return NIL if the parameter is not an array.

Files

Library is vm

Seealso

ACOPY(), ADEL(), AINS(), ASIZE()

Advertisements

Advertisements