本文整理自网络,侵删。
function StringToVariantArray(const S: string): OleVariant;var P: Pointer;begin Result := NULL; if Length(S) > 0 then begin Result := VarArrayCreate([0, Length(S) - 1], varByte); P := VarArrayLock(Result); try Move(S[1], P^, Length(S)); finally VarArrayUnlock(Result); end; end;end
相关阅读 >>
Delphi 10分钟10行代码开发app(Delphi 应用案例)
Delphi 判断是否为空('none', 'null', '')
Delphi 莫名奇妙的错误 Delphi is not a valid integer value
Delphi 获取适合微信使用的当前日期,以int64表示,是当前时间和1970-01-01 00:00:00之间的秒差
Delphi tnethttpclient https忽略证书验证
Delphi winapi: messagebeep - 播放一个系统声音
更多相关阅读请进入《Delphi》频道 >>