Welcome to the SQLitening support forums!
Started by Jean-Pierre LEROY, March 20, 2017, 02:41:22 PM
QuoteYou don't need to REDIM the destination array twice. The code I added to the function call manually resets the string pointers to make that array safe to REDIM. You added a REDIM to the array outside of the function before the array was made safe to REDIM and thus erasing all the string data (which the source array is still pointing at). That will cause a GPF the next time a string in the source array is referenced.The function, as written in my last post, will already redimension the destination array as needed. The destination array should be considered "read-only" outside of the function (ie. safe to pass data to the grid control, but not for new assignments, clearing or redimensioning).