Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limitation of character pass between com object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00771733
Message ID:
00771890
Vues:
10
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
Fil
Voir

Click here to load this message in the networking platform