I have all the booklets, plus the large .pdf file by Wyken Seagrave. I have looked and looked for the right info, and specific examples, but there is so much information available that I cannot find my way through the forest. I have uploaded a test project (in another post) if anyone wants to try their luck. Thank you.
>> Only "Main" has these type of globals in B4Pages
If that is true, then why can't I compile my small project when I do this in "Main"?
Sub Process_Globals
Public ActionBarHomeClicked As Boolean
Public swe0 As SweDate
Public swe1 As SwissEph
Public JD, Transit(11), Speed(11) As Double
Public lnn(11), month_names(13), p_names(11) As String
Public vrs As String
Public num_bodies, sel_number, tz_offset As Int
Public ephem_codes(11) As Long
Public deltaT_val0(200), deltaT_val1(200), deltaT_val2(200) As Double
Public ae(2), deltaT As Double
End Sub
I get this error message:
B4A Version: 13.10
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'swe1' is used before it was assigned any value.
Error occurred on line: 60 (B4XMainPage)
swe1.swe_set_ephe_path(File.DirInternal)