back to Table of Contents


ConvBufToNativeEol & ConvBufToLnxMacEol & ConvBufToWinEol (sub)

These subroutines can be used to switch the specified buffer to use a different line endings mode. The current contents of the buffer will be converted to comply with the new mode. You can either convert the buffer to use the OS native line endings or you may force the buffer into a specific mode by using the respective subroutine.

Warning: Use these converter routines for pure text buffers only. If used on buffers containing binary data, it will probably corrupt those data!!

The current buffer (cursor) position is recalculated in such a way, that it is at the same position in the text as before the converter call.


SYNTAX:

ConvBufToNativeEol buf$()
ConvBufToLnxMacEol buf$()
ConvBufToWinEol buf$()

INPUTS:

buf$() (STRING array)


back to Table of Contents