Re: Matheval ... the next step (for me)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike777 wrote:
> 
> > 
> > Well, the good news is that it now runs.  The bad news is that any line
> > with the STR function on it disappears.  I have tested the equivalent of:
> > 
> > BLOCK(
> > (mySeq := "Test"),
> > x := 1,
> > y := 2,
> > (mySeq := mySeq & {STR,{ADD,x,y},{}} ),
> > (mySeq := mySeq & mySeq)
> > )
> > 
> > I get "TestTest".  Nothing between the two tests.
> > 
> > Any suggestions at this point?
> > 
> > Thanks again.
> 
> Further testing shows that the return from the CStr function is always 
> the error condition, which causes Matheval to discared the statement it
> is embedded in.  I have tried many, many versions of the STR function
> (with quotes, without quotes, with double quotes, without double quotes,
> with 1 argument filled in and the second one empty, etc.).  All return
> the error condition (which I confirm with a pretty print of all the
> matheval results, as per the documentation).
> 

I added "include texteval.e" to mathdemo.exw and here's what I got:

Enter expression: "test" & str(1+4) & "foo"
    Result: {test5foo}
Simplified: {test5foo}

You say, "equivalent."  What exactly did you try?

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu