[futurebasic] Re: [FB] Re: Strange Dim

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2003 : Group Archive : Group : All Groups

From: barrie <barrie@...>
Date: Mon, 21 Apr 2003 12:30:39 -0400
on 4/21/03 11:41 AM, Ken Shmidheiser at kshmidheiser@... wrote:

> Barrie asked:
> 
> I found this on http://www.pixmix.com/FB/HowTo/MATH/MATH039.html
> The first line does not make sense. How can I fix it?
> Thanks
> Barrie
> 
> '-------------------------------------
> DIM theTime _DateTimeRec
> ' the 7 fields are all integers
> ' year, month, day, hour, minute,second, dayOfWeek
> '-------------------------------------
> Try this:
> 
> 
> dim as DateTimeRec theTime
> dim as long        TimeInSeconds
> dim as OSErr       err
> 
> err = FN ReaDDateTime( TimeInSeconds )
> Secs2Date( TimeInSeconds, @theTime )
> 
> print theTime.year, theTime.month, theTime.day
> print theTime.hour, theTime.minute, theTime.second
> print theTime.dayOfWeek
> 
> 
> One caveat when using PixMix examples is that many were constructed
> in FBII and need to be converted to FB^3.
> 
Ken
Thanks for your help and reminder that some of the PixMix examples are pre
FB^3. I still think the site is a great resource.
Barrie