Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfgetarr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfGetArr()
Reads an element from an array
------------------------------------------------------------------------------
Syntax:

     dfGetArr( <aSource>, <nEle> ) --> uVal

Parameters:

     <aSource>  Array.
     <nEle>     Element to read.

Returns:

     <uVal> Read element.

Description:

     Reads an element from an array. The element may not exist.

Example:

     LOCAL aMyArray := { 1,2,3 }
     ? dfGetArr( aMyArray, 1 )  // Returns 1
     ? dfGetArr( aMyArray, 2 )  // Returns 2
     ? dfGetArr( aMyArray, 3 )  // Returns 3
     ? dfGetArr( aMyArray, 4 )  // Returns ""

See also:

     dfAEmpty()

See Also: dfAEmpty()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson