Astro Library

Azhar

Active Member
Licensed User
Longtime User
Hello All,

Not too sure which was the most relevant thread to ask...

I've loaded up the nice Astro library. I'm having trouble reading the GetMoonData as it returns an array of five doubles.

my new instance is astro1 so how do I read each of the 5 double returned data?

something = astro1.GetMoonData(todayDay, todayMonth, todayYear.....)

Your help is much appreciated.

------------------------------ Added later -------------------------
This is probably a very fundamental thing which is easy to resolve with just a push in the right direction.
If the function returns an array of 5 elements (doubles) do I have to place the result array container at the end of the function such as...

astro1.GetMoonData(tDay, tMon, tYear, tMin, dHour, retData(5)) or something?

I tried doing this also...

astro1.GetMoonData(tDay, tMon, tYear, tMin, dHour, retA, retB, retC, retD, retE) but that didn't work either




azhar
 
Last edited:

derez

Expert
Licensed User
Longtime User
something = astro1.GetMoonData(todayDay, todayMonth, todayYear.....)

The "something" should be an array (which is previously declared):

B4X:
Dim arr(5) as double
arr =  astro1.GetMoonData(todayDay, todayMonth, todayYear.....)
then you can refer to each of the elements, for example -
log(arr(0))

The correct place for this question is after the last post of the astro library thread.
 
Last edited:
Top