中文
Appearance
从内存地址读取一个字节到Byte变量中。
语法:GetMem1 Address , retVal
直接读取地址,不进行边界或对齐检查。从不属于进程的地址或已释放的地址读取将导致宿主崩溃。
Dim s As String = "ABC" Dim b As Byte GetMem1 StrPtr(s), b Debug.Print b ' 65 — the low byte of the UTF-16 code unit for "A".