quote:以下是引用bcap在2009-03-13 10:08:27的发言:quote:以下是引用waxapludnt在2009-03-03 19:11:41的发言:
日期控件:LANDdesk Date time control
时间选择:Microsoft Forms 2.0 combobox
对于这类控件参数的调用,一般需要这样处理:
Dim dtctl
Set dtctl=HMIRuntime.ActiveScreen.ScreenItems("ctlname")
Dim IntVar
IntVar=FormatDateTime(dtctl.Value ,2)
Dim testriqi
Set testriqi = HMIRuntime.Tags("testriqi")
testriqi.Read
testriqi.Write IntVar
关键是声明对象,然后获得它的属性,比如“Value”值。