Hi guys,
I am using an API that exposes the functionality of a phone-switch.
One object in this API, among other things, returns the state of a phone-switch's caller-queue. This queue is retuned as an array, and under VB, the array's members are readily accessible through the VB debugger.
Under VFP, this same array's data is inaccessible. In the debugger, the object's attributes are shown properly in the object tree, and the array I'm interested in is shown as having a value of (Array), and a type of "Z". Under VB, I can access the array's data using the standard x=array(i), but this does not work in VFP. When I check the length of this array via ALEN(), it DOES reflect an increse in size for added data, so I guess it's working in some respects.
I'm unfamilliar with Custom Extension Records (which I think this type-Z denotes), and I wonder if I should be using the DECLARE - DLL function. Would someone please give me a clue!?! Here's some sample code:
#DEFINE QT_USER 9
mApp=ALLTRIM(thisform.txtApp.value)
mServ=ALLTRIM(thisform.txtServ.value)
mUser=ALLTRIM(thisform.txtUser.value)
mPass=ALLTRIM(thisform.txtPass.value)
mMach=ALLTRIM(thisform.txtMach.value)
mStat=ALLTRIM(thisform.txtStat.value)
mExt=thisform.txtExt.value
oConnection =CREATEOBJECT("ClientCOM2.EICServer2")
oConnection.FullConnect(mApp,mServ,mUser,mPass,mMach,.t.)
oQueue =CREATEOBJECT("ClientCOM2.EICQueue2")
oQueue.Connect(QT_USER,mUser)
Thanks!
John MR Fitzgerald
Order Inc.