Hi all, I've been working on an HTML page that uses checkboxes. The way the checkbox string is produced, it is equal to something like 'X' OR 'Y' OR 'Z' But the quotes around each individual value are creating a bit of a problem. I have found that if I manually enter it, it will work if the outputted string is formatted in one of two ways. 'X OR Y OR Z', or X,Y,Z How would I change the way the string is formatted to be either of those?This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8.2.01M on Windows 10
April 23, 2019, 02:06 PM
jfr99
One way ...
-*
-SET &IND_SECT = '''X'' OR ''Y'' OR ''Z''';
-SET &IND_SECT1 = TRUNCATE(STRREP(&IND_SECT.LENGTH,&IND_SECT,6,''' OR ''',4,' OR ',&IND_SECT.LENGTH,A&IND_SECT.LENGTH));
-*
-TYPE IND_SECT -------------- &IND_SECT
-TYPE IND_SECT(LENGTH) ------ &IND_SECT.LENGTH
-TYPE -----------------------
-TYPE IND_SECT1 ------------- &IND_SECT1
-TYPE IND_SECT1(LENGTH) ----- &IND_SECT1.LENGTH