Hi, @all!
In some cases I would like my function will return Byte(0 to -1), like 'vb Split' do, so array will be always initialized and further I can safely use Ubound() for checking or directly in 'for each' e.t.c., no matter, but I don't know how correctly create such "empty" byte array in a way to be sure not to get crash surprises when runtime decides to free memory of such "empty" array.Code:'some examples of (0 to -1) Private Sub Form_Load() Dim arr$(), v arr = Split("") 'String(0 to -1) v = Array() 'Variant(0 to -1) '??? 'Byte(0 to -1) End Sub
Thanks for help.
Alex.




Reply With Quote
