CSV export issues

Brian K. White brian at aljex.com
Wed Jul 12 09:49:34 PDT 2017


On 7/10/2017 6:34 PM, Jean-Pierre Radley via Filepro-list wrote:

> You can succeed with c=chr(NUM) for many values of NUM, but 34 isn't one of
> them.

OK hold up... I'm not crazy after all.
I just tried both of these, and they both worked.

@keyq
then: q = "\""
then: msgbox asc(q)
then: end

@keyq
then: q = chr("34")
then: msgbox asc(q)
then: end

They both showed 34 in the msgbox:

Plain "msgbox q" without the asc() worked too.
It showed a single "

So now I just copy & pasted the original line right from the original 
email and that worked too:

@keyq
If:
Then: e(2) = chr("34") & chr("34") ' double double-quote
If:
Then: msgbox e
If:
Then: end


                               ┌──────────────────┐
                               │ ""               │
                               └── Press  Enter   ┘


I'm using 5.0.14

So either your version of fp behaves different, or your problem is with 
subsequent handling/use of x, but the desired value is actually in x.

You had me thinking we would have to do some kind of nasty flushkey ; 
pushkey ; inkey or something for a minute there.

-- 
bkw


More information about the Filepro-list mailing list