Search found 70 matches

by herbwords
Thu Apr 11, 2013 8:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: if last card of stack then
Replies: 1
Views: 1891

if last card of stack then

this script is in a button on all cards that ascends to the last card of stack "inventory". I'm trying to get to card "inventory1" in another stack if the current card is the last card of the "inventory" stack. on mouseUp if this cd is last cd of stack "inventory" then go to cd "inventory1" of stack...
by herbwords
Thu Apr 11, 2013 4:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: systems requirement for livecode open source?
Replies: 12
Views: 8650

Re: systems requirement for livecode open source?

Thanks Simon, et al.

Would it be possible to have the system requirements listed on the web site?

Thanks,

Patrick
by herbwords
Wed Apr 10, 2013 9:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: systems requirement for livecode open source?
Replies: 12
Views: 8650

Re: systems requirement for livecode open source?

Hi again,

When you say page 4 of the release notes is this on the web site or located in the package when you download? I've looked several places on the web site and have found nothing?

Patrick
by herbwords
Wed Apr 10, 2013 3:12 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: systems requirement for livecode open source?
Replies: 12
Views: 8650

systems requirement for livecode open source?

Hi,

Can someone tell me what the systems requirements for livecode open source? (Mac & Win)

Thanks,

Patrick
by herbwords
Tue Mar 05, 2013 7:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

Hi, I just wanted to resolve this thread for the sake of anyone that has this same situation. I switched everything to months. I can have someone choose the number of months and store it in one of the fields and then add it to item 2 of dateItems. I did this on the arbitrary and on the fly versions ...
by herbwords
Tue Mar 05, 2013 3:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

OK, I think I see what the problem is. I wanted to give them the option to have any time period on the fly so I added an "other" option: on tUnitFG put the date into myDate convert myDate to dateItems ask "How long before this item expires? (Ex: 1.25 (15 months), 1.5 (18 months), 1.75 (21 months), 2...
by herbwords
Tue Mar 05, 2013 3:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

I'll try your new code Simon.

The problem with John's is off amounts of time like 0.333 for 4 months. It won't work. 1.25 or 1.5 or 1.75 does work. Maybe this should be done as months?

Thanks,

Patrick
by herbwords
Tue Mar 05, 2013 1:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

I ran into a problem with John's code.

I put in 1.75 or ( 1 year 9 months) and it won't work with the 5. It only covers 1 decimal place.

So, back to Simon's code!

Thanks all
by herbwords
Tue Mar 05, 2013 12:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

very cool, thanks John!

your's is cool too simon, i'm sure in perspective it will open other doors for my imagination!

Cheers,

Patrick
by herbwords
Mon Mar 04, 2013 6:58 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

It does work, I was wrong about it being a month off, it looks like it's about 2 days off. But, as stated months are different 30 or 31 days and leap years gain a day. This accuracy is good enough for raw herbs! It would be interesting to see how accurate it could be written. I'm sure that would be ...
by herbwords
Mon Mar 04, 2013 6:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

Thanks Simon. I tried it and it's close. Using todays date 3/4/13, I set the preferences to 1.5 years (fld "setDateD") it returned 9/2/14, about 1 month off. Maybe the seconds need to be tweeked slightly? The reason for 1.5 is the format that I want used in the preferences for expiration dates (1.5 ...
by herbwords
Mon Mar 04, 2013 5:21 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

Re: adding a decimal amount to a date

Wow, your so smart!

How would you write that?

Thanks,

Patrick
by herbwords
Sun Mar 03, 2013 9:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: adding a decimal amount to a date
Replies: 19
Views: 12004

adding a decimal amount to a date

Hi, I wrote this and it works fine with whole numbers. When I put 1.5 into the expire time (fld "setDateD") it won't deal with the .5 which represents 1/2 year. Any suggestions? on gramExp put the date into myDate convert myDate to dateItems add fld "setDateD" of cd "inventory1" of stack "inventory"...
by herbwords
Wed Feb 06, 2013 7:07 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: allow user to import an image file
Replies: 1
Views: 1735

allow user to import an image file

I'm trying to allow users to import an image into each card of a card data base. It would have a browse button and the picture would be place into rectangle1. Any suggestions are appreciated. I remember Richard Gaskin built an employee data base like this way back when there was no sql.

Patrick
by herbwords
Mon Jan 07, 2013 10:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: basic table field
Replies: 1
Views: 1970

basic table field

Hi to All,

I'm still using cards. I can't seem to grasp data grids and sqlite. I may get sqlite soon.

If you collected data from 5 fields on a card and have 20 cards what would the script look like to display the information in a basic table field.

Thanks,

Patrick