Doubt on CIM Creation

jk.karthick

New Member
Can anyone explain me why we are passing 4 quotes("""") continuously when we want to display the value of a variable in a cim file ?
ex:
def var a as char no-undo.
a = "apple".
output to "cim.cim".
put """"a"""" skip
".".
output close.
 

MrMacaroon

New Member
it is so the value of the variable has quotes around it in the file. I prefer this method:

def var a as char no-undo.
a = "apple".
output to value("cim.cim").
put '"' a '"' skip
".".
output close.

I use single-quote ' for my put statement and double-quote " for the output. It makes tracking your output easier and stops 4 double-quotes, cause if you miss one you are in trouble.

HTH

Cameron.
 
Top