Hi Robert
Honestly, that was from long time ago, so I don't remember exactly the reason I have it programmed like that
The first element of the array is always 0, to make sure the returned array always contains at least one element. That is to prevent SQL error when we use that data in SQL command
Regards,
Tuan