terminator
Programmer
Could anyone assist in coneverting this vb code to vbscript if possible. This line (Set q = qinfpen(MQ_SEND_ACCESS, MQ_DENY_NONE) is the cause of confusion, it requires that "qinfo" and 'q' both be an instance on an object. I've tried every thing I know. maybe it's just not possible with vbscript. It works fine with VB.
If anyone has an input or solution let me know.
Thanks.
Dim qinfo As MSMQQueueInfo
Dim q As MSMQQueue
Private Sub Form_Click()
Set qinfo = New MSMQQueueInfo
qinfo.PathName = ".\OpenTest"
qinfo.Label = "Test Queue"
Set q = qinfpen(MQ_SEND_ACCESS, MQ_DENY_NONE)
If q.IsOpen Then
MsgBox "The queue " + qinfo.PathName + " is open."
Else
MsgBox "The queue is not open!"
End If
End Sub
If anyone has an input or solution let me know.
Thanks.
Dim qinfo As MSMQQueueInfo
Dim q As MSMQQueue
Private Sub Form_Click()
Set qinfo = New MSMQQueueInfo
qinfo.PathName = ".\OpenTest"
qinfo.Label = "Test Queue"
Set q = qinfpen(MQ_SEND_ACCESS, MQ_DENY_NONE)
If q.IsOpen Then
MsgBox "The queue " + qinfo.PathName + " is open."
Else
MsgBox "The queue is not open!"
End If
End Sub