back to Table of Contents


InitBuf (sub)

The String buffers are regular string arrays. However, before you can use an array as string buffer, the array needs to have a certain amount of elements and some of the elements have to be initialized with certain values. So the easiest way to init a new buffer, is to create a new dynamic (REDIM) string array of at least one element and then immediately call this subroutine given the created array as argument. After that is done, the buffer is ready for use.

This routine can also be used to quickly clear, reset and reinitialize any existing buffer. Ie. it will discard the regular data stored in the buffer, also any set markers and find data are cleared. The current buffer position is set to the first byte and the buffer will use the OS native line endings.


SYNTAX:

InitBuf buf$()

INPUTS:

buf$() (STRING array)


back to Table of Contents