vinceco252
15th August 2002, 23:25
I have a function that accepts arguments from VB and processes them into a customized distribution session. Everything is working perfectly except for on problem: I have an argument that is domain tcitem that sometimes has a quotation mark (") (i.e., the item number is 230-1") in it. When these items are received by the function, it causes a fatal error. Does anyone have any experience or suggestions for how to process arguments that have quotation marks in them?

shah_bs
16th August 2002, 05:40
I do not know if this will work in VB, but in BAAN program scripts, you can 'embed' a double-quote in a string as follows:

stringdataname = "literal" & """"


(That's four quotes - the result in stringdataname will be:

literal"

)

Alternatively, you could try a replacing the " with a \" (that's a back-slash-quote).

Hope this works for you.