sqlstr

Original VisualText 2 documentation (2001–2013). For the current NLP++ tools, see visualtext.org.

Purpose

Convert string to SQL format.

Syntax

returnedString = sqlstr(string)

returnedString - type: str
string - type: str

Returns

String with special SQL chars converted appropriately.  Merely converts a single quote to two single quotes.

Remarks

Example

"output.txt" << sqllstr("hello'bye") << "\n";

Outputs:

hello''bye

See Also

String Functions