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

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 704 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
Question Experimenting with a "StringList" type for simpler handling of string arrays/lists Heimdall 18 1,226 12-19-2025, 12:51 PM
Last Post: Heimdall
  NewBie Question niteflyer 2 345 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 388 11-02-2025, 11:37 AM
Last Post: Magdha

Forum Jump:


Users browsing this thread: 1 Guest(s)