Mobile App Development Software
Alpha TransForm
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • API
  • Objects
  • Data Types
  • Array
  • dimension Method
Parent | Child | Previous | Next
  • age Method
  • append Method
  • append_arrays Method
  • append_arrays_filtered Method
  • class Method
  • clear Method
  • copy_from Method
  • delete Method
  • dimension Method
  • dump Method
  • dump_csv Method
  • dump_json Method
  • dump_properties Method
  • filter Method
  • find Method
  • findi Method
  • first_empty Method
  • for_each Method
  • get_dynamic Method
  • get_fields Method
  • get_recycle Method
  • initialize Method
  • initialize_from_csv Method
  • initialize_from_table Method
  • initialize_properties Method
  • insert Method
  • isnull Method
  • itemtype Method
  • last_appended Method
  • lower Method
  • matching Method
  • move Method
  • property_order Method
  • push Method
  • reorder Method
  • resize Method
  • set_dynamic Method
  • set_recycle Method
  • setnull Method
  • size Method
  • sort Method
  • touch Method
  • typename Method
  • upper Method
 
Xbasic

Array dimension Method

Syntax

dim dimensions as N = <ARRAY>.dimension()

Returns

dimensionsNumeric

Returns the number of dimensions in the array.

Description

Get the number of dimensions in an array, such as for a multidimensional array.

Example

dim arrmd[4,4] as n

? arrmd.dimensions()
= 2

for i =  1 to 4
    arrmd[i,i] = 1
next

? arrmd[1,1]
= 1

? arrmd[2,1]
= 0

? arrmd[2,2]
= 1
Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy