CHR(10) and CHR(13) are the ASCII-representations of the 'carriage return' and the 'line feed' characters that combined will result in a cursor to be in the first column of the follwing row.

You might want to let other's know the KiXtart version you are using as the answers will depend on it. For example, KiXtart 3.x does not support UDFs.
_________________________
There are two types of vessels, submarines and targets.