Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field values in SCX
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00857255
Message ID:
00857490
Views:
23
> As far as the timestamp goes, I have two methods which convert to/from
> timestamp and date-time values. If you're interested, send me a private mail.

Hehe, why the secrecy? ;-) The timestamps are DOS datetime format, plain and simple. There is ample documentation for this format available and plenty of functions that support it (including the Win32 API). But rolling one's own in Fox isn't all that hard unless one wants to support oldies like VFP5 etc.:
function DosT2FoxT (nDosDateTime)
   return iif(empty(m.nDosDateTime), ;
         {--::}, ;
         datetime( ;
               bitand(bitrshift(m.nDosDateTime, 25), Ox7F) + 1980, ;
               bitand(bitrshift(m.nDosDateTime, 21), Ox0F), ; 
               bitand(bitrshift(m.nDosDateTime, 16), Ox1F), ;
               bitand(bitrshift(m.nDosDateTime, 11), Ox1F), ;
               bitand(bitrshift(m.nDosDateTime,  5), Ox3F), ;
               bitand(          m.nDosDateTime     , Ox1F) * 2  )  )
Also, a largish portion of the SCX format is documented in HOME()+"Tools\FileSpec\". But I agree with DF, letting Fox handle the low-level stuff is easier & cleaner.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform