what is the use of "CanvasDrawWrap" command? how to use it?
This sets whether the text wraps around for the canvas. If the text is longer that the width of the canvas then wrap makes it continue onto the next line whereas no-wrap would show just one line of text and truncate the rest.
The Language Reference PDF has the wrong syntax for CanvasDrawWrap. It should be
CanvasDrawWrap(canvasid,wrap)
wrap = 0 gives no wrap
wrap <> 0 gives wrap