Search found 8 matches

by NZN37
Mon Mar 19, 2012 10:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Frozen on November Fourth
Replies: 3
Views: 3401

Frozen on November Fourth

I want some code which lists days in order:

on mouseUp
put empty into fld test
put "10/31/12" into temp
repeat with zz=1 to 6
convert temp to seconds
add 86400 to temp
convert temp to short date
put temp into line zz of fld test
end repeat
end mouseUp

But the thing hangs on 11/4/12 and ...
by NZN37
Thu Mar 05, 2009 10:42 pm
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651

I'm also getting "Monday, March 6, 2169" on my computer (mac, osX 10.5). What kind of machine are you on, and what do you get if you try the following script?

local temp
put the long date into temp
convert temp to seconds
convert temp to internet date
answer temp

maybe the long date or the ...
by NZN37
Thu Mar 05, 2009 9:31 pm
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651

Mark wrote:After running your script, I get Sunday, March 5, 2169
I get Friday, December 13, 1901.
by NZN37
Thu Mar 05, 2009 8:52 pm
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651



You might want to provide just a little bit more info to enable me and others to help you.

If this handler produced the correct date everything would be fine:

on mouseUp
put the long date into temp
convert temp to seconds
repeat 100
add 1.6*365.25*86400 to temp
end repeat
convert temp to ...
by NZN37
Thu Mar 05, 2009 7:47 pm
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651

"Why don't you use four-digit years? "

CenturyCutoff still interferes.
by NZN37
Thu Mar 05, 2009 8:01 am
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651

I need to run dates a few hundred years forward in an astronomy program.
by NZN37
Wed Mar 04, 2009 10:15 pm
Forum: Talking LiveCode
Topic: centuryCutoff
Replies: 10
Views: 9651

centuryCutoff

Is there a way to disable the centuryCutoff property?
by NZN37
Thu Apr 26, 2007 10:09 pm
Forum: Mac OS
Topic: Focusable
Replies: 2
Views: 5829

Focusable

In the fld inspector there is a click box named 'focusable'. How does one change that box through code?

set the xx of fld 1 to true/false

What is xx? What property is 'focusable' alluding to?


NZN