I have declared some variable in Sub Process_Globals in Main Activity.
I have assigned some values to those variables.
When I open Activity2 and try to use those variables (with the values from Main Activity) I get an error message "Error description: Undeclared variable 'info_cur' is used before it was assigned any value."
Is there a way to pass variable values from one Activity to another?
Is there a way to hide one layout (file) and display another layout in Main Activity? This way wouldn't be a problem with access to variables.
Is there an equivalent statement to "GoTo LabelName" to bypass part of the code in the sub?
I have assigned some values to those variables.
When I open Activity2 and try to use those variables (with the values from Main Activity) I get an error message "Error description: Undeclared variable 'info_cur' is used before it was assigned any value."
Main Activity
Sub Process_Globals
Dim info_cur As Int
Dim info_curTab As Int
Dim info_inst As Int
info_cur = 5 'this is an example only, those values will be changed
info_curTab = 3 'in the program. They are not constant values.
info_inst = 20
end sub
Activity2
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Info")
ListView1.AddTwoLines("Cable Rating (A): " & info_cur, "Ref. Table: " & info_curTab)
....
....
End Sub
Is there a way to pass variable values from one Activity to another?
Is there a way to hide one layout (file) and display another layout in Main Activity? This way wouldn't be a problem with access to variables.
Is there an equivalent statement to "GoTo LabelName" to bypass part of the code in the sub?