如何使用VARIANT类将VB脚本转换为PHP脚本

I can sample a VBScript to take advantage of functions from .dll files.

And I can use the .dll file also in PHP with the COM class, but there is one function that I cannot complete, which must send parameters that seem like arrays.

Please help to complete this function. This FalcoNetworkLib.dll is a library to send & get data from hardware. I've tried with create param as array but still get an error.

This is the VBScript sample :

Option Explicit
Dim cmdobj As New FalcoNetworkLib.FalcoCommandClient

Private Sub AddCard()
    Dim msg As String  
    Dim nResult As Integer
    Dim param As FalcoNetworkLib.CardDbStruct
    Dim param.CardNo = 1
        param.PinNo = 0
        param.AccessTimeZone = 1
        param.LiftAccessLvl = 1

   nResult = CommandObj.FalcoQuickSetCardDb("192.168.0.23", "2003", 0, param, msg)

   If nResult <> 0 Then
       MsgBox msg
   End If
End Sub
dongmi19720408
dongmi19720408 这是VBA而不是VBScript。
大约一年之前 回复
dongpiao9078
dongpiao9078 ...但仍然出错......什么错误?
大约一年之前 回复
doulu4316
doulu4316 这是示例VB脚本:
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问