Copies a portion of the command buffer to a program variable.
SqlStrCpy% ( sqlconn%, start%, numbytes%, buffer$ ) ( )
where
numbytes% setting | Result |
---|---|
< 0 | SqlStrCpy% copies the entire command buffer. |
= 0 | cmdstring$ is set to an empty string. |
> 0 | SqlStrCpy% copies the actual number of bytes in the buffer and returns SUCCEED. |
SUCCEED (1) or FAIL (0). FAIL is returned if start% is negative.
Internally, the command buffer is a linked list of text strings. Parts of the command buffer can be located and copied using SqlStrCpy% and SqlStrLen%.
SqlCmd%, SqlFreeBuf, SqlStrLen%