515276542 发表于 2012-1-19 23:59:07

大家帮帮手.求某段时间内每周三的日期,怎样实现

做了简单的UI,日期可让用户自己选择.在该时间范围中每周三的日期在编辑框里显示出来#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 394, 442, 192, 124)
$Label1 = GUICtrlCreateLabel("至", 184, 32, 20, 17)
$Button1 = GUICtrlCreateButton("输出", 152, 72, 75, 25)
$Edit1 = GUICtrlCreateEdit("", 24, 120, 345, 257)
GUICtrlSetData(-1, "")
$Date1 = GUICtrlCreateDate("", 16, 24, 154, 21)
$Date2 = GUICtrlCreateDate("", 216, 24, 154, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        day()
        EndSwitch
WEnd

515276542 发表于 2012-1-20 13:44:16

{:face (319):}求指导。。。
页: [1]
查看完整版本: 大家帮帮手.求某段时间内每周三的日期,怎样实现