Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi,
Here is my code
DEFINE CLASS Temp AS Session OLEPUBLIC
PROCEDURE ReturnString(cString AS String @, iLen AS Integer @) AS VOID
cAlias = SYS(2015)
liSQLHandle = SQLSTRINGCONNECT([Driver={SQL Server};Server=SQLServer;Int Security;])
IF liSQLHandle # -1
IF SQLEXEC(liSQLHandle, "SELECT * FROM Northwind.dbo.Employees", cAlias) # -1
SELECT * FROM (cAlias) INTO DBF "C:\Temp.DBF"
cString = FILETOSTR("C:\Temp.DBF")
iLen = LEN(cString)
ENDIF
ENDIF
CLOSE TABLES
ENDPROC
ENDDEFINE
When I run under Com+, [iLen] return 3308, but the len the [cString] received is 3287....
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement