Search found 12 matches

by Rage
Sat Mar 28, 2015 10:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Re: Concerning Dateitems

Ok so I did a line by line trace of the entire script and found where the value of Dday had changed to compensate for a variant in the Julian date..........bottom line is my bad for not going through the entire script prior to posting......... But at least I did learn some valuable information conce...
by Rage
Sat Mar 28, 2015 7:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Re: Concerning Dateitems

Thank you for replying Sparkout Every time I change the code I save and then close out the script and any open 'cards' then reload via the 'Open recent files' Per chance the IDE might have retained the value I closed the entire program and reloaded it and re-running the file gave me the same incorre...
by Rage
Sat Mar 28, 2015 6:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Re: Concerning Dateitems

I should note that the return of dateitem indicates that it is the 28th

but the line:

put item 3 of Datenum into Dday

seems to somehow shift it by 1 day
by Rage
Sat Mar 28, 2015 6:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Re: Concerning Dateitems

Thank you for your suggestion Craig So I placed the following code based on your suggestion get the long date && the time put it into DateNum convert DateNum to dateItems And the hour, minutes and seconds work perfectly..........but the day is still off by 1 indicating it's the 27th and not the 28th...
by Rage
Sat Mar 28, 2015 6:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Re: Concerning Dateitems

Thank you Craig for your reply......... I would have thought the same thing but my system indicates the correct date, so to apply your thought pattern it would have to think it was one date and then display another. Which isn't a logical conclusion. in the Livecode dictionary under dateitems it stat...
by Rage
Sat Mar 28, 2015 4:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Concerning Dateitems
Replies: 11
Views: 7212

Concerning Dateitems

I have a snippet of code which is as follows: put the date into DateNum Convert Datenum to dateitems put item 1 of Datenum into Dyear put item 2 of Datenum into Dmonth put item 3 of Datenum into Dday put item 4 of Datenum into Dhour put item 7 of Datenum into Dnumofday Seems straight forward......th...
by Rage
Fri Mar 27, 2015 6:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: One more calculation question.......
Replies: 6
Views: 4339

Re: One more calculation question.......

Thanks Craig, I've downloaded them and no doubt refer to them often.......

again Thanks
by Rage
Fri Mar 27, 2015 4:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: One more calculation question.......
Replies: 6
Views: 4339

Re: One more calculation question.......

Interestingly enough the second example you gave worked fine. I'm trying to convert the system date to the Julian equivalent and for the most part seem to be getting caught up on the syntax of the scripting language and finding work arounds for syntax not native to livecode. Which is the major part ...
by Rage
Fri Mar 27, 2015 2:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: One more calculation question.......
Replies: 6
Views: 4339

One more calculation question.......

Any idea how this: mon = round((24-12)/10)

could throw an error as being a double binary operator?

The same happened with :mon is round((24-12)/10)
by Rage
Fri Mar 27, 2015 12:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing data..........any suggestions?
Replies: 5
Views: 4623

Re: Normalizing data..........any suggestions?

Thank you so much Walt, the answer was obvious but by concentrating so much on the problem I didn't see the answer that was right in the code........
by Rage
Fri Mar 27, 2015 5:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing data..........any suggestions?
Replies: 5
Views: 4623

Re: Normalizing data..........any suggestions?

Thank you Craig for your response. I'm writing a moon phase calculation which determines the ecliptic latitude/longitude of the moon on any day. here is the snippet of code which concerns the function 'normalize' where IP,AG,NP, and RP are integers % calculate moon's age in days IP := normalize( ( J...
by Rage
Fri Mar 27, 2015 2:44 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Normalizing data..........any suggestions?
Replies: 5
Views: 4623

Normalizing data..........any suggestions?

Hello all, I'm brand new to livecode and have programmed in #c among others but I'm having a difficult time trying to figure this equation out with regards to livecode. The code was written in Zeno and is as follows: IP:=normalize((JD-2451550.1)/29.530588853) I have scoured the Zeno programming refe...