Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass >255 chars to a VFP COM Object?
Message
 
 
À
12/08/2001 22:47:41
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00542853
Message ID:
00542868
Vues:
15
>I created a simple VFP7 COM object that takes a character string as a parameter and parses it into various parts. Works fine for short strings, but it crashes with "String too long to fit" when passed more than 255 characters.

Got code you can post or email to me? Works fine for me. I build the following into a COM server project called "utcom":
DEFINE CLASS foo as Session olepublic
PROCEDURE foo(foo as String) as string
	RETURN foo
ENDPROC
enddefine
Then execute the following:
ox=newo('utcom.foo')
?ox.foo(REPLICATE('x', 2500))
and it works fine, printing 2.5K "x"s to the screen.
Mike Stewart
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform