- VB6的數據類型的精確程度如何?(通過幾分之一秒)?
- 如何格式化以顯示秒的分數?
我在重提VB6多年後沒有了,而且對於我的生活而言,我不記得以前知道的東西。我考慮把memory-leak標籤放在這裏,因爲我的記憶泄露了(呃呃)。VB6日期數據類型:精度和格式化
我發現這個API調用之後,它似乎工作:
Declare Sub GetSystemTime Lib "kernel32.dll" (lpSystemTime As SystemTime)
Public Type SystemTime
Year As Integer
Month As Integer
DayOfWeek As Integer
Day As Integer
Hour As Integer
Minute As Integer
Second As Integer
Milliseconds As Integer
End Type