WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: oldone1 on March 24, 2014, 09:31:40 PM

Title: ArrayItemize
Post by: oldone1 on March 24, 2014, 09:31:40 PM

I suspect that there is an error in the ArrayItemize function.  If the first element is a null(nothing) then the function returns a empty string, even though other elements exist.  I worked around it by inserting a value into the first element and the function worked as expected.

This occurred due to the fact that I created the array via arrayize and the first byte in the input string was a delimiter.  The udf that I was using to perform this function (udfvbjoin) did handle this situation
Title: Re: ArrayItemize
Post by: td on March 24, 2014, 10:20:19 PM
There does appear to be a bit of an issue with an empty string first element.  We will get it addressed in the next release. 

Thanx for taking the time to report the problem.