Hi, I am trying to make a solar position calculator based on the details from the National Oceanic & Atmospheric Administration (NOAA). There are also internet based calculators and they use javascript to function. Anyhow, I have a one page sheet of the equation that I am trying to make a VB6 calculator to obtain sunrise, sunset, and solar noon results and have a few snags. For instance, one line I am having trouble to use in VB is the following:
cos(Phi )=sin(lat)*Math.sin(declin)+cos(lat)*cos(declin)*cos(ha)
where I get an error "Function call on left hand side of assignment must return a variable or object". I have the code original equation I can post if anybody wants to try and help me
Thanks,
vbdrk
cos(Phi )=sin(lat)*Math.sin(declin)+cos(lat)*cos(declin)*cos(ha)
where I get an error "Function call on left hand side of assignment must return a variable or object". I have the code original equation I can post if anybody wants to try and help me
Thanks,
vbdrk