Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass >255 chars to a VFP COM Object?
Message
From
13/08/2001 10:25:15
 
 
To
12/08/2001 22:47:41
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00542853
Message ID:
00543000
Views:
10
>Greetings all -
>
>I've been out of the VFP world for a while as most of my projects lately have been ColdFusion and SQL Server, so maybe I'm missing something obvious...
>
>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.
>
>I'm obviously hitting the internal 255 limit for character data types, but I would have thought that with all the wiz-bang COM improvements to VFP7 that MSFT would have given us some more flexibility here...maybe it's here and I'm just missing it?
>
>TIA,
>
>Jay

Is that the error from the COM server? or is it thrown before the call to it?
If beforehand, how are you making the string? if you build it incrementally into a variable it should work just fine. e.g.
x = "string begins with"
x = x + " more of the string "
etc.
fwiw, I don't think there is an internal limit on strings, but rather on a single line.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform