Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 25 August 2020 06:50 AM


 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.


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.


 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))
Not helpful

Comments (0)
Post a new comment
Full Name:
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