Can anyone help me understand how to do a STRREP when I am trying to replace a single quote mark (')?
Thank you,This message has been edited. Last edited by: Kerry,
WebFOCUS 7.7.03 AS400 DB2 V5R4 Windows Server 2003 64 bit SP2, All Outputs
September 23, 2011, 03:16 PM
njsden
More background info about your need would be useful but hopefully the sample code below can give you some ideas:
DEFINE FILE CAR
NAME/A10 WITH CAR = 'O''Connor';
NEW_NAME/A10 = STRREP (10, NAME, 1, '''', 1, '*', 10, NEW_NAME);
END
TABLE FILE CAR
PRINT NAME AND NEW_NAME
WHERE RECORDLIMIT EQ 1
END
Here is some more information. All of my data is right justified. I am trying to create a multiselect box with the values of A, B, C. But I need the fields to read ' A', ' B', ' C'. If I select A and B from my multiselect box the value is 'A' or 'B'. I need to modify this field to make it read like ' A' or ' B'.
WebFOCUS 7.7.03 AS400 DB2 V5R4 Windows Server 2003 64 bit SP2, All Outputs
September 23, 2011, 04:27 PM
Francis Mariani
Why not have the values in the multi-select contain that first-character blank? The blank would be passed within the variable.
How are you populating the multiselect box? If it's with static values entered from the Composer, the line of code renders like this: