M Mostez Well-Known Member Licensed User Longtime User Jun 22, 2017 #1 hello, is it possible to copy array 'directly' to global store slot? in this code i want to copy 10 bytes from KPEntryBuffer to global store slot 0 thanks Code: Copy Dim EnteredPassKeyArr(10) As Byte 'declare temp array BC.ArrayCopy2(KPEntryBuffer,0,EnteredPassKeyArr,0,10) 'copy to temp array, then put in global store slot GlobalStore.Put(0,EnteredPassKeyArr)
hello, is it possible to copy array 'directly' to global store slot? in this code i want to copy 10 bytes from KPEntryBuffer to global store slot 0 thanks Code: Copy Dim EnteredPassKeyArr(10) As Byte 'declare temp array BC.ArrayCopy2(KPEntryBuffer,0,EnteredPassKeyArr,0,10) 'copy to temp array, then put in global store slot GlobalStore.Put(0,EnteredPassKeyArr)
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2017 #2 Mostez said: is it possible to copy array 'directly' to global store slot? Click to expand... Yes. The array is copy when you call GlobalStore.Put. If you want to copy only part of the array then use BC.SubString2. Upvote 0
Mostez said: is it possible to copy array 'directly' to global store slot? Click to expand... Yes. The array is copy when you call GlobalStore.Put. If you want to copy only part of the array then use BC.SubString2.