描述
将字符串插入到另一个字符串表达式中的指定位置.
FreeBASIC 语法
FUNCTION AfxStrDelete ( _ BYREF wszMainStr AS WSTRING, _ BYREF wszInsertString AS WSTRING, _ BYVAL nPosition AS LONG _ ) AS CWSTR |
参数
wszMainStr
[in]主串.
wszInsertString
[in]要插入的字符串.
nPosition
[in]的起始位置.如果nPosition大于wszMainStr或<=零然后wszInsertString追加到wszMainStr长度.
用法示例
DIM cws AS CWSTR = AfxStrInsert("1234567890", "--", 6) ' Returns "123456--7890"
引用文件
AfxStr.inc