Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitation of character pass between com object?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00771733
Message ID:
00771890
Views:
11
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
Map
View

Click here to load this message in the networking platform