modStrTools 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

PointerToString 函數

說明

取得指標指定的位置字串內容

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
hPointer Long 4 必須 (無) 字串指標

傳回值

字串

範例

Debug.Print PointerToString(StrPtr(StrConv("中文測試", vbFromUnicode)))
' 可傳回 "中文測試"

基本條件

Visual Basic 4 以後 | StrTools.bas

請參閱

modStrTools 函式庫 | StringToPointer