📄 yx-ctr.vbs
字号:
set oEc = Wscript.CreateObject("EasyCics.App")
r = oEc.ConnectServer("SUNYX", "TEST", "TEST")
if r<>0 then
MsgBox "can't connect"
Wscript.Quit r
end if
s = InputBox( "请输入查询名称:", "CTR", "ferere" )
if s="" then Wscript.Quit 0
oEc.SetValue "Name", s
oEc.CallProgramAndCommit "CTR"
r= oEc.GetErrCode
if r<>0 then
MsgBox "CICS call failed"
Wscript.Quit r
end if
s= oEc.GetValue("_")
if s<>"0" then
MsgBox oEc.GetValue("_"), 0, "program call failed"
Wscript.Quit r
end if
oEc.RsOpen
rc = oEc.RsGetRowNum
cc = oEc.RsGetColNum
s = ""
For i = 1 To rc
oEc.RsFetchRow
For j = 1 To cc
s = s + oEc.RsGetCol(j) + ","
Next
s = s + chr(13) + chr(10)
Next
MsgBox s, 0, "CTR"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -