|
That server has 5.0, hopefully it will be upgraded
soon. At least I know it isn't in my coding.
Thanks.
Ted From: Robert Shubert [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 10:10 AM To: [email protected] Subject: RE: Witango-Talk: COM object array parameter There was a bug related
to this that was supposed to be corrected in 5.5. Are you using that version of
the server? I can look into some code I was working with in the past to see if
it has been corrected, I believe it has. Robert -----Original
Message----- Hi, I am converting an asp page to
witango and am trying to use the COM object the asp uses in Witango. Has
anyone passed an Witango array to a COM object. I have been have
successful in using COM objects except this one, which is has a parameter in an
array format. Here is the function code from the asp
page: Function
InitSearchTracking Dim
SearchTracking Set SearchTracking =
Server.CreateObject("CTRKSearch.TrackingItem") Set InitSearchTracking =
SearchTracking End
Function Function CreateSearchTracking(UsrId, FldId,
Qry, Name, ByRef SearchTrackingObj) Dim Success, QueryArray(1),
Key QueryArray(0) =
CLng(UsrId) QueryArray(1) =
CLng(Qry) Set SearchTrackingObj =
InitSearchTracking SearchTrackingObj.InitNew myConnection,
myDatabaseType, UsrId, FldId, "", "",
Now SearchTrackingObj.AddQuery
QueryArray SearchTrackingObj.Commit
Success CreateSearchTracking =
Success End
Function In Witango, using the COM object,
the 'SearchTrackingObj.InitNew myConnection,
myDatabaseType, UsrId, FldId, "", "", Now' statement
works correctly. The COM object for the
'SearchTrackingObj.AddQuery
QueryArray' does not. I have replaced these asp
statements: QueryArray(0) =
CLng(UsrId) QueryArray(1) =
CLng(Qry) with this Witango
statements: <@ASSIGN
NAME="vQueryKey" VALUE="<@ARRAY ROWS='2' COLS='1' value='@@request$vusrid;@@request$vqrynum'>"
SCOPE="request"> Which produce an array
The parameter in the
CTRKSearch.TrackingItem object is
text format. The Witango error that I get in
debug mode is:
Ted
Wolfley ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
