View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] gimme_this_gimme_that@yahoo.com is offline
external usenet poster
 
Posts: 129
Default Which reference library has Int64 ?


wrote:
Thanks.


BTW: Here's an example usage:

(I googled and figured that LastLogin must be Int64 because of it's
HighPart method.)

If I'm on the wrong track and you have any ideas let me know.

Here's an example value : 128038660578885137


set LastLogin = objMember.get("lastLogonTimeStamp")
If LastLogin.HighPart = "" Then
intLLTS = "Never"
Else
intLogonTime = LastLogin.Highpart * (2^32) + LastLogin.LowPart
IntLogonTime = IntLogonTime / (60 * 10000000)
intLogonTime = intLogonTime / 1440
if intLogonTime = 0 Then
intLLTS = "Never"
Elseif intLogonTime = "" Then
intLLTS = "Never"
Else
intLLTS = intLogonTime + #1/1/1601#
End If
End If