Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: udfStrAnsiToArray Array String Convert
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #DefineFunction udfStrAnsiToArray (strTextAnsi) strDelim = Num2Char (1) intSizeBB = StrLen (strTextAnsi) << 1 hdlBB = BinaryAlloc (intSizeBB) BinaryPokeStrW (hdlBB, 0, strTextAnsi) BinaryReplace (hdlBB, "", strDelim, @TRUE) arrText = Arrayize (BinaryPeekStr (hdlBB, 0, intSizeBB - 1), strDelim) hdlBB = BinaryFree (hdlBB) Return arrText ;...................................................................................................................... ; This UDF returns a Dim-1 array, whose elements are filled with the successive ; characters of the given input ansi string (one ansi char = one Byte = one element). ; ; Detlev Dalitz.20090410. ;...................................................................................................................... #EndFunction
Article ID: W18392
Filename: String to Array UDF.txt
File Created: 2009:04:15:13:48:22
Last Updated: 2009:04:15:13:48:22