General information
Category:
COM/DCOM and 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....
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only