Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about _MEM blocks and arrays
#12
a simple example to copy an array
Code: (Select All)

Dim a(10), b(10), m As _MEM
For i = 0 To 10
    b(i) = i + 1
Next

m = _Mem(b()) '<-- to point to the array b()
_MemGet m, m.OFFSET, a() ' copy array b() into array a()
For i = 0 To 10
    Print a(i)
Next
Reply


Messages In This Thread
RE: Question about _MEM blocks and arrays - by Jack - 06-05-2025, 01:18 AM



Users browsing this thread: 2 Guest(s)