Hi,
Is there a way to output single or double quotes via a PRINT statement?
We’re looking to build up a zonelist automatically from a file containing a list of zones - so are reading it in as a record file and looping over the records to build up the string.
The final string we want to output to a text files is something like
CityCentre = ‘1,3,56,68,134,246’
but are struggling to get Cube to output a single quote as that’s used to define the string to outputs
i.e. we have
Rec1: CityCentreList = 'CityCentre = ‘1,’
Rec2: CityCentreList = CityCentreList + ‘3,’
…
RecN: CityCentreList = CityCentreList + 246 + ’ ’ ’
but Cube doesn’t like the single quotes in in the first and last lines.
Is there some way to escape the single quote character? Or use an ASCII code or similar?
Thanks,
Matt