KMatle Expert Licensed User Longtime User Mar 25, 2019 #1 I have defined a variable in Process_Globals (ESP32 program) B4X: Public iv(16) As Byte I wondered why I'm not able to change it from a sub via ArrayCopy. Via Inline C I can do it. For a test I tried to modify the first byte B4X: iv(0)=99 Log("IV(0)",iv(0)) It works in B4X: Private Sub AppStart but not in any other sub. Any ideas? Last edited: Mar 25, 2019
I have defined a variable in Process_Globals (ESP32 program) B4X: Public iv(16) As Byte I wondered why I'm not able to change it from a sub via ArrayCopy. Via Inline C I can do it. For a test I tried to modify the first byte B4X: iv(0)=99 Log("IV(0)",iv(0)) It works in B4X: Private Sub AppStart but not in any other sub. Any ideas?
Erel B4X founder Staff member Licensed User Longtime User Mar 25, 2019 #2 It should work. You don't need to do anything special. Please post a small example that doesn't work. Upvote 0
It should work. You don't need to do anything special. Please post a small example that doesn't work.