Re: Comet 32: An unhandled exception (1) has occured


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on February 04, 2011 at 13:20:54:

In Reply to: Re: Comet 32: An unhandled exception (1) has occured posted by Jim Guerber on February 04, 2011 at 12:35:38:

This is old-old code from the Q-days. It is part of some standard libraries that we use all the time.

here's the excerpt

Well, today is 2011/02/04, so..
Day (2.0) is 04
Month (2.0) is 02
Year (4.0) is (2011-1900) = 111
Julian (5.0)
LeapYear (1.0) is 2 on normal years, 1 on leap year

"the formula"
Julian = Int(Month * 275 / 9.000) + Day - 30 = 4
If Month > 2 Then Julian = Julian - LeapYear !! Not applicable here
Julian = Julian + 1000*Year (4 + 1000*111 -> 111004 -> 11004)

I changed my Julian variable to a 6.0 and problem ran away. I still don't understand why your code worked but not mine?

I did mention I was using the Comet 32 compiler ?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]