I just took a look at your code... I think you are confusing "Main" with "B4XMainPage"
Main is an activity module, and in B4XPages, the only activity
B4XMainPage is a Special Class Module that solves a few problems related to multi activity projects
So, B4XMainPage does NOT have a "Process Globals" sub, on the Activity "Main" does
so you should start by firstly understand what that means!
Also, using 10+ years old libs, when more recent and versatile options exist, like in your case the "Dialogs" and "ClipBoard" libs, is something I recomend you to avoid.
I for one, will not add such libs to my additional libs folder
Makes no difference if I move the globals to "Main". "Sub Process_Globals". Then it doesn't compile.
Error parsing program.
Error description: Undeclared variable 'vrs' is used before it was assigned any value.
Error occurred on line: 75 (B4XMainPage)
t = vrs & " - " & month_names(9) & " " & NumberFormat(22, 2, 0) & " " & "1949" & " at " & "16" & ":" & NumberFormat(43, 2, 1) & " TZ =" & NumberFormat2(0, 1, 1, 1, False) & CRLF
Nor does the attached work properly either.
I appreciate the fact that I do not fully understand all the terminology. I appreciate your suggestions, but I'm not sure I understand exactly what to do as the fix. Yes, I know that old libraries may be an issue at times. But it is not my current issue. And the old stuff does work. What doesn't work are the global variables - b4X just doesn't recognize them as global variables. And until I get that fixed, then I have nothing.