Re: Error 1308 comparing strings

Tech-Archive recommends: Speed Up your PC by fixing your registry



Dan-

Your example works fine. But the following code fails in the command window:
l_x = REPLICATE("x", 338852)
l_y = REPLICATE("y", 338852)
? l_x <> l_y


"Dan Freeman" wrote:

> What version of VFP? Version of Windows? What else is in your environment?
> Do you get the same error if you extract the offending line of code out of
> your application?
>
> I just did this in the command windows and it works fine:
>
> ? Replicate("x",338852) <> Replicate("x",338852)
>
> Often, the act of extracting a working reproducible failure will point you
> to the *actual* problem which may not have anything whatsoever to do with
> what you thought it was.
>
> Dan
>
> Devers wrote:
> > I'm getting an error 1308 (Insufficient Stack Space) when comparing a
> > string and a memo field with lengths of 169,378 chars and 338,852
> > chars respectively. The command is simply: IF lc_Notes <>
> > cCUST.cu_notes
> >
> > If I put the string into a memo field in a cursor and then compare
> > the two memo fields, I get the same result. Ditto for putting the
> > memo field into a string and comparing the two strings. The Help for
> > system capacities states that character strings or memory variables
> > can be 16,777,184 characters long. Has anyone else run across this
> > problem, and what would you suggest for a work-around? (Besides
> > chopping up the string into 100K pieces for comparison, that just
> > sounds cheesy to me.)
>
>
>
.



Relevant Pages

  • Re: Error 1308 comparing strings
    ... Works fine for me in VFP9 in the command window. ... >>> a string and a memo field with lengths of 169,378 chars and 338,852 ... >>> memo field into a string and comparing the two strings. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: DOS command window handler
    ... If you want to open a command window, and send multiple commands to it you ... STRING lpClassName,; ... DECLARE INTEGER ShellExecute; ... *- I'm using FindWindow API to tertieve the HWND of the cmd-window ...
    (microsoft.public.fox.programmer.exchange)
  • Re: please help (novice)
    ... The reason your code fails is the following line.... ... > Use an initializer list instead of assignment, ... > You also need a destructor to deallocate the string. ... > This is OK if, as seems likely, you don't intend to have a terminating ...
    (comp.lang.cpp)
  • Re: please help (novice)
    ... > The reason your code fails is the following line.... ... >> You also need a destructor to deallocate the string. ...
    (comp.lang.cpp)
  • Re: Display mutiple lines strings in matlab edit box issue
    ... Just make sure the editbox is tall enough to show however many lines is printed each time the log records. ... % Add this string to the edit box. ... display log on the bottom of the window. ... So do matlab command window. ...
    (comp.soft-sys.matlab)