thanks, but actually i would like to have all the code into one function, like this:
global dim arr(1) as integer
ptr = get array ptr(arr())
array_add_to_bottom(ptr)
FUNCTION array_add_to_bottom(ArrPtr as dword)
local dim temp() as integer
unlink arrayptr ArrPtr
link array to pointer temp(),ArrPtr
ARRAY INSERT AT BOTTOM temp()
TmpPtr = get array ptr(temp())
unlink array pointer temp()
link arrayptr ArrPtr,TmpPtr
ENDFUNCTION ArrPtr
This means i'd need 2 new functions ,unlink arrayptr and
link arrayptr which would accept an array pointer as argument instead of the array name.
BTW, in the dll readme, you mention a UNLINK ARRAYPTR function
Quote: "UNLINK ARRAYPTR - Unlinks an array from its pointer
UNLINK ARRAYPTR a()"
but it doesn't seem to exist.
EDIT: The goal is to create a function similar to ARRAY INSERT AT BOTTOM which would accept an array pointer instead of an array name.