Android Question Pointers in B4A?

W. Graf

Member
Licensed User
Longtime User
Hi all,

I'm programming in B4A since ~3 months. So I'm new in this technology. ;-)

I've a question. In VB6, I'm often using pointers and the Windows-API-function CopyMemory (actually RtlMoveMemory). So I can quickly copy some of the elements from array A() to array B().

Does B4A support similar technologies (like in VB6: VarPtr, StrPtr, CopyMemory)? If you say no: do you have any advice, which programming-technique I should use instead of it? Should I simply copy the elements vom A() to B() like the following...?
For x = 0 to 4
B(x) = A(x)
Next

Or do you know a better (more efficient) way? I need it in a loop. In each loop, I'm copying only a few elements from a big array to a small Array and then I'm working with the small array. It's no problem to simply copy it (see above like the For-Loop). But I'm thinking about, if there is a faster method in B4A available, which I don't know?

Thank you in advance for your help!!

BR Wolfgang
 
Top