标题: 哪位帮忙解释下这段代码的意思 [打印本页] 作者: yumo_yiran 时间: 2007-6-4 13:54 标题: 哪位帮忙解释下这段代码的意思 Function subBaseData(CtrType as string,CtrName as string,ActionValue as string)
Select Case CtrType
Case "EditBox"
EditBox Click, "Type=EditBox;Name="+CtrName, "Coords=1,1"
InputKeys ActionValue
case "ComboBox"
ComboBox Click, "Type=ComboBox;Name="+CtrName, ""
ComboListBox Click, "Type=ComboListBox;Name="+CtrName, "Text="+ActionValue
Case Else
MsgBox "File was not hidden."
End Select
End Function作者: dionysus 时间: 2007-6-5 10:34
就是自定义的一个函数,根据传入的控件类型来分别判断,选择编辑内容或者点击哪个对象作者: yumo_yiran 时间: 2007-6-5 11:09
谢谢了,昨天琢磨明白了其在SUB过程中的作用了