Arrays & Process Global

luke2012

Well-Known Member
Licensed User
Longtime User
Hi to all,
it's possible to declare an array (ex. Dim MyArr () As String) within "Process Global" and than size and use it in other Activities?

Example

*** Activity Main ***

Sub Process_Globals
Dim MyArr () As String
end sub

*** Activity MyActivity ***

sub MySub ()
Dim MyArr (10)
MyArr (0) = "value"
end sub

My target is to share the array with all the activities of my app.
 

luke2012

Well-Known Member
Licensed User
Longtime User
Thanks for the reply.
My doubt is about "Dim MyArr (10)" statement.

I must change from "Dim MyArr (10)" to "Dim Main.MyArr (10)" ?

It make sense?
 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
I tried it but doesn't work.
So my target is to resize the array that is declared as Process Global.

In the statment "dim Main.MyArr (10)" I got the error :

Error Parsing Program
Unknown Type MyArr
Are you missing a library reference?
 
Upvote 0
Top