chazzie Posted February 24, 2004 Report Share Posted February 24, 2004 I'm trying to get local time (hours and minutes), but I sometimes get a very high number, like 14453. Sometimes I get the correct hour and minute, like Hr=14 Min=22 Here's how I read FSUIPC: If FSUIPC_Read(&H238, 1, VarPtr(Tmp), dwResult) Then If FSUIPC_Process(dwResult) Then LocHr = Tmp End If End If Any thoughts? Link to comment Share on other sites More sharing options...
rickalty Posted February 24, 2004 Report Share Posted February 24, 2004 Dim auiTime() As Byte ReDim auiTime(3) FSUIPC_Read(&H238, 3, VarPtr(auiTime(1)), dwResult) FSUIPC_Process(dwResult) lblClock.Caption = Format(auiTime(1), "00") & ":" & _ Format(auiTime(2), "00") & ":" & _ Format(auiTime(3), "00") Straight out of the SDK Richard Link to comment Share on other sites More sharing options...
chazzie Posted February 24, 2004 Author Report Share Posted February 24, 2004 Thanks a bunch rickalty! Seems like the only difference was to dim the value as Byte rather than Integer. My project moves on :D Patrik Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now