>>Private Declare Sub RtlMoveMemory Lib "kernel32" (ByVal hpvDest As Any, ByVal hpvSource As Any, ByVal nBytes As Long) >>>>
>>DECLARE INTEGER RtlMoveMemory IN KERNEL32.DLL ; >> STRING hpvDest, ; >> LONG hpvSource, ; >> LONG nBytes >>>>
>>Dim bytePhrase(500) As Byte >>*'Store the string pointer as a byte in the bytePhrase array >>RtlMoveMemory VarPtr(bytePhrase(0)), lngStrAddress, 500 >>*'Convert from a byte to string >>ByteToString = StrConv(bytePhrase, vbUnicode) >>>>
>Declare RtlMoveMemory In WIN32API ; > INTEGER @DestNumeric, ; > STRING @pVoidSource, ; > INTEGER nLength > >lnValue = 0 >lcStr = bintoc(1200,'4RS') >lnSize = 4 >RtlMoveMemory(@lnValue, m.lcStr, m.lnSize) >? m.lnValue>However in VFP there are tons of functions now to use in place of RtlMoveMem, like createbinary(),strconv(),bintoc(),ctobin(),sys(2600) ...