Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API returns an unreadable Z-type array.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
API returns an unreadable Z-type array.
Divers
Thread ID:
00796831
Message ID:
00796831
Vues:
63
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)		&& 	App Name
mServ=ALLTRIM(thisform.txtServ.value)		&&	Server name
mUser=ALLTRIM(thisform.txtUser.value)		&&	CIC User name
mPass=ALLTRIM(thisform.txtPass.value)		&&	CIC password
mMach=ALLTRIM(thisform.txtMach.value)		&&	Machine name 
mStat=ALLTRIM(thisform.txtStat.value)		&&	User status
 mExt=thisform.txtExt.value			&&	Phone Extention

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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform