Re: Getting someone's age from dob and current year

2011-07-31 Thread Admin
Thanks everyone. I figured the dob problem out and it's now working. Now I just need to get my substack back. Have there been stability problems with substacks? Mike On Sun, 31 Jul 2011 11:32:02 -0400, Peter Brigham MD wrote: > On Jul 31, 2011, at 12:03 AM, Warren Samples wrote: > >> On

Re: Getting someone's age from dob and current year

2011-07-31 Thread Peter Brigham MD
On Jul 31, 2011, at 12:03 AM, Warren Samples wrote: > On Saturday, July 30, 2011 07:16:44 PM Roger Eller wrote: >> convert tToday to seconds >> convert tBorn to seconds > > > It's been talked about before, but this calls for a reminder: attempting to > convert a date prior to Jan 1, > 1970 t

Re: Getting someone's age from dob and current year

2011-07-30 Thread Warren Samples
On Saturday, July 30, 2011 07:16:44 PM Roger Eller wrote: >convert tToday to seconds >convert tBorn to seconds It's been talked about before, but this calls for a reminder: attempting to convert a date prior to Jan 1, 1970 to "seconds" returns "invalid date" instead of a number in Windo

Re: Getting someone's age from dob and current year

2011-07-30 Thread Roger Eller
On Sat, Jul 30, 2011 at 8:38 PM, Admin wrote: > > > Hi all - another one: > > I have a path stored in a MySQL database to > an image file. > > I have a page with a image control > > I know how to > SELECT the imagepath info and bring it into a variable, but how do I > then load that image into the

Re: Getting someone's age from dob and current year

2011-07-30 Thread Michael Kann
ote: From: Admin Subject: Re: Getting someone's age from dob and current year To: "How to use LiveCode" Date: Saturday, July 30, 2011, 7:38 PM   Hi all - another one: I have a path stored in a MySQL database to an image file. I have a page with a image control I know how to

Re: Getting someone's age from dob and current year

2011-07-30 Thread Admin
Hi all - another one: I have a path stored in a MySQL database to an image file. I have a page with a image control I know how to SELECT the imagepath info and bring it into a variable, but how do I then load that image into the image control (with proper proportions)? I tried the obvious

Re: Getting someone's age from dob and current year

2011-07-30 Thread Admin
Thank you. I am sure that will do it! Mike On Sat, 30 Jul 2011 20:16:44 -0400, Roger Eller wrote: > On Sat, Jul 30, 2011 at 5:20 PM, Admin wrote: > >> Hello all, I need to figure out someone's age. I have their date of birth and I have today's date. How do I get the end result. My math s

Re: Getting someone's age from dob and current year

2011-07-30 Thread Roger Eller
On Sat, Jul 30, 2011 at 5:20 PM, Admin wrote: > > I figured I would subtract this year from the dobyear and get the age - am > I right? How would I do this if I am? > > Mike > I gotta start reading the whole message before I reply... If you already have two 4-digit year values in variables, you

Re: Getting someone's age from dob and current year

2011-07-30 Thread Roger Eller
On Sat, Jul 30, 2011 at 5:20 PM, Admin wrote: > > > Hello all, > > I need to figure out someone's age. > > I have their date > of birth and I have today's date. How do I get the end result. My math > skills SUCK. > > Here's my code (loaded in from the database with a SELECT > statement): > > put i

Re: Getting someone's age from dob and current year

2011-07-30 Thread Admin
Hello all, I need to figure out someone's age. I have their date of birth and I have today's date. How do I get the end result. My math skills SUCK. Here's my code (loaded in from the database with a SELECT statement): put item 7 of myLine into dobMonth put item 8 of myLine into dobDay put