AClone()

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()

3 responses to “AClone()

  1. Pingback: Harbour All Functions — A | Viva Clipper !

  2. Pingback: Harbour Array Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.