Home > OS >  Beginners Vbsscript, write a function to meet the solution type mismatch
Beginners Vbsscript, write a function to meet the solution type mismatch

Time:03-20

The Function error (count0)
XSH. Screen. Send (" check_error: "+ count0)
XSH. Screen. Send (VbCr)
XSH. Dialog. MsgBox (" reboot: "+ count)
XSH. Dialog. MsgBox (" check the route ")
End the Function


Sub Main

Dim j, j=2
Error (j)
XSH. Screen. Send (" route - ne ")


End Sub

'the Function check2 (KJL)
'the check (KJL)=2
'XSH. Screen. Send (" route - the nw-trending | grep 0.0.0.0 | wc -l ")
'XSH. Screen. Send (VbCr)
'screenrow=XSH. Screen. CurrentRow
'data=https://bbs.csdn.net/topics/xsh.Screen.Get (screenrow screenrow - 1, 1, 1, 20)
'if CInt (Instr (1, data, "4", 1))="1" Then
'the check (KJL)=0

'End If
'end function

This script is hung on xshell, but function and parameter said type does not match how to return a responsibility?

CodePudding user response:

Line# 1: type mismatch '[string: "check_error"]' this is the wrong information
  • Related