23245374 发表于 2012-3-14 20:25:35

求人帮忙完善代码,让我这个新手研究下!

本帖最后由 23245374 于 2012-3-14 20:28 编辑

求两日期相隔的天数,我做了个简单的GUI,但代码总是弄不好,求高人帮下忙补充完善,也好让我研究下。另外最好让算得的结果在“计算结果”后面显示出来!

#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$Date1 = GUICtrlCreateDate("2012/09/15 19:37:1", 80, 88, 186, 21)
$Date2 = GUICtrlCreateDate("2012/03/14 19:37:3", 80, 120, 186, 21)
$Button1 = GUICtrlCreateButton("计算结果", 304, 104, 75, 25)
$Group1 = GUICtrlCreateGroup("测算", 40, 48, 465, 137)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
页: [1]
查看完整版本: 求人帮忙完善代码,让我这个新手研究下!