i have an app that reads an editbox and runs a program to determine the price
of a product. the editbox contains rules of my trade. the process runs fine
until the number of characters in the editbox exceeds 7475 characters. is
this a known limit of foxpro, or do i have to change my program.

RE: editbox limitation by MichelRoy

MichelRoy
Mon Nov 28 14:31:09 CST 2005

i've tried a 3.2mb file text file in an edit box on the form
?MEMLINES(_vfp.Forms(1).controls(1).value) reports 98900 lines
maybe it is in the way you read you edit box.


"Marty" wrote:

> i have an app that reads an editbox and runs a program to determine the price
> of a product. the editbox contains rules of my trade. the process runs fine
> until the number of characters in the editbox exceeds 7475 characters. is
> this a known limit of foxpro, or do i have to change my program.
>

Re: editbox limitation by Bernhard

Bernhard
Tue Nov 29 04:00:04 CST 2005

Hi Marty

> i have an app that reads an editbox and runs a program to determine the price
> of a product. the editbox contains rules of my trade. the process runs fine
> until the number of characters in the editbox exceeds 7475 characters. is
> this a known limit of foxpro, or do i have to change my program.
In which way do you use these rules?
If you simply build a command by macro expansion then there is a limit of 8192
bytes per command line. See help file: Visual FoxPro System Capacities,
Miscellaneous

Regards
Bernhard Sander

RE: editbox limitation by Devers

Devers
Tue Nov 29 15:41:05 CST 2005

Marty-

I stumbled across a limitation to the length of string variables when using
SET COLLATE TO GENERAL, maybe this is related? (The default is MACHINE)
Microsoft has fixed this issue in SP1 for VFP9.

You might want to try posting the offending code if it's still crashing.

"Marty" wrote:

> i have an app that reads an editbox and runs a program to determine the price
> of a product. the editbox contains rules of my trade. the process runs fine
> until the number of characters in the editbox exceeds 7475 characters. is
> this a known limit of foxpro, or do i have to change my program.
>