For string variables, we can find a word with FindString().
But how can we do that with *Memory ?
Note: do NOT attempt to put the contents in a string, as it can be very large and may contain null characters.
Code: Select all
HW.s = "Hello World"
*Mem = AllocateMemory(5000)
PokeS(*Mem+1820, HW+" of Europe !")
PokeS(*Mem+2605, HW+" of America!")
PokeS(*Mem+3675, HW+" of Asia !")
PokeS(*Mem+3904, HW+" of Africa !")
PokeS(*Mem+4675, HW+" of Oceania!")
Here.i = FindMemoryString(*Mem, HW); this command or procedure does not exist, it must be created <<<<<<<<<<<
Debug PeekS(*Mem+Here+30, 7, #PB_Unicode); show the name of the continent
Also, it would be nice if I could find the string from the end of the *Memory block, to get directly the last one.
Thanks.