adChar and adParamInput is not recognized

前端 未结 1 555
萌比男神i
萌比男神i 2021-01-23 08:18

I\'m doing a sql to oracle migration. I have to change a lot of old vbscript code. This is an example of the new code that I\'m using with Oracle. And this is the bit of code th

1条回答
  •  自闭症患者
    2021-01-23 08:44

    VBScript does not know about the ad* constants of ADODB. BTW, the same holds for the xls* or wd* constants of Excel or Word.

    For ad* constants you can:

    1. just use numbers (with comments; e.g. .CommandType = 4 'adCmdStoredProc)
    2. define them yourself (e.g. Const adCmdStoredProc = 4)
    3. include (an edited version of) adovbs.inc

    0 讨论(0)
提交回复
热议问题