Knowledgebase:
ArraySize
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 13 July 2017 10:50 AM

Syntax

Public Function ArraySize(ary As Variant) As Integer

This function is used to return the number of elements in given array.

Parameters

Key Description 
Ary   Array to get size, value of type Variant.

Return value

Return the size in a selected array as integer value.

Sample

 Public Sub main ()

 Dim Arr (5)

 Arr (1) = 1
 Arr (2) = 2
 Arr (3) = 4
 Arr (4) = 6

 Dim Size

 Size = ArraySize (Arr)
 AlertMessage (Size)

 End sub


See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions