Knowledgebase:
ArrayFill
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 11 July 2018 11:21 AM

Syntax

 Public Function ArrayFill(ByRef FilledArray As Variant, ByVal Start As Integer, ByVal toIndex As Integer, ByVal value As Variant) As Boolean

This function is used to fill elements of an array from start index to an end index with a specific value.

Parameters

Key Description 
FilledArray Array that want to fill it’s elements, a value of type object
Start End position index, a value of type Integer.
toIndex End position index, a value of type Integer.
value Value that wants to fill the array with. Value of type object.

Return value

Returns true if the array fills with elements otherwise returns false.

Sample

 Public Sub main()

    Dim s(5)
    Dim res 
    
res = ArrayFill(s,2,5,8)
    AlertMessage s(2)

 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