luke2012 Well-Known Member Licensed User Longtime User Mar 23, 2012 #1 The code below raise a crash in the runtime of the apk. The target was to share an array between all activity modules. Sub Process_Globals Dim ArrRoles(1) As String:ArrRoles(0)="Cameriere":ArrRoles(1)="Titolare" end sub
The code below raise a crash in the runtime of the apk. The target was to share an array between all activity modules. Sub Process_Globals Dim ArrRoles(1) As String:ArrRoles(0)="Cameriere":ArrRoles(1)="Titolare" end sub
thedesolatesoul Expert Licensed User Longtime User Mar 23, 2012 #2 That is because you declared your array too small. Dim array(x) as String, means your indices go from 0 to x-1 You need to declare as Dim array(2) as string to get this working.
That is because you declared your array too small. Dim array(x) as String, means your indices go from 0 to x-1 You need to declare as Dim array(2) as string to get this working.
K kickaha Well-Known Member Licensed User Longtime User Mar 23, 2012 #3 You obviously did not notice that I corrected this for you in your other thread!