一个字就是——汗!
QuotedStr 返回一个加了单引号的字串,用在BCB中构造SQL语句非常方便。
例:Caption = QuotedStr("名称");
VCL Reference
QuotedStr
Returns the quoted version of an AnsiString.
Unit
SysUtils
Category
String handling routines
extern PACKAGE AnsiString __fastcall QuotedStr(const AnsiString S);
Description
Use QuotedStr to convert the string S to a quoted string. A single quote character (') is inserted at the beginning and end of S, and each single quote character in the string is repeated.
Note: When working with multi-byte character systems (MBCS), use AnsiQuotedStr instead.
没有评论:
发表评论