Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass >255 chars to a VFP COM Object?
Message
 
 
To
12/08/2001 22:47:41
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00542853
Message ID:
00542868
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform