gbernal
6th December 2004, 18:01
Hello everybody.

I'm developing a session which gets out a plain ascii file as a sort of interface for another application. This file contains strings that should be recognized between double quotes.

How can I put a string between double quotes?, the following example represents the out I need


"Enterprise" 0111111.99 "Mineria"
"Enterprise" 0111122.23 "Exploration"
.
.
.

Any answer is well appreciate.

gbernal

mark_h
6th December 2004, 18:09
Before writing a string value just use chr$(34) on both sides. Like

outstring = chr$(34) & string1 & chr$(34)

Mark

NPRao
6th December 2004, 20:05
You can also use the tools function - quoted.string() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_quoted_string)

or

string temp(80)

temp = sprintf$("""%s"" ""%s""", "Hello", "World")