Discussion Board for collaboration on QlikView Scripting.
i am using VBScript in QlikView, i have one array, which contains the list of dates, but i want to get the maximum date from the array.
so how can i get it using VBScript?
Go to Solution.
Try like this
MaxDate = CDate(MyArray(0))
for i = 1 to MyArray.Count -1
if CDate(MyArray(i)) > MaxDate then
MaxDate = CDate(MyArray(i))
Something like this?
dtmMaxDate = 0
for i = 0 to MyArray.Count -1
if MyArray(i)> dtmMaxDate then dtmMaxDate = MyArray(i)
How you store the dates in array?
Thanks for reply Celambarasan