Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FlexFile Reference Guide - <b>a_dims()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 A_DIMS()
 Return the number of dimensions in an array
-------------------------------------------------------------------------------

 Syntax

    A_DIMS( <aTarget> )   ->   nDimensions

 Arguments

    <aTarget> is the array whose dimensions are being queried.

 Returns

    A_DIMS() returns the number of dimensions of <aTarget>.

 Description

    A_DIMS() is used to query an array returning the number of
    dimensions that were used when the array was A_DECLARE()d.


 Examples

    // Declare a four dimensional (S)tring array
    LOCAL books, pages, rows, cols

    books = 2
    pages = 10
    rows = 15
    cols = 50
    aString = A_DECLARE( "S", books, pages, rows, cols )

    ? A_DIMS( aString )          // Result: 4

See Also: A_DECLARE() A_LEN()

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