SqlGetChar$

Returns the value of a character in the command buffer.

Syntax

SqlGetChar$ ( sqlconn%, charnum% )

where

sqlconn%
Is a SQL Server connection. The value of sqlconn% is returned by SqlOpen%.
charnum%
Is the character to find in the command buffer. The first character is the 0th character.

Returns

The value of charnum% in the command buffer. If charnum% is not in range, an empty string is returned.

Remarks

Use SqlGetChar$ to find a particular character in the command buffer. It returns a string of the charnum% character in the command buffer.

Internally, the command buffer is a linked list of non - null-terminated text strings. Parts of the command buffer can be located and copied using the SqlGetChar$, SqlStrCpy%, and SqlStrLen% functions.

See Also

SqlCmd%, SqlFreeBuf, SqlStrCpy%, SqlStrLen%