The Digital Man Posted March 3, 2005 Share Posted March 3, 2005 O.K. I have a value list made up of single letters. A P C S Lets say the above letters are my value list. Now I have presented the value list as a checkbox on the screen. Lets say the user checks A, C, & S. I want to print these letters in a report as: "ACS". But the values go into my storage field as: A C S How do I strip the returns out? Or are there some preferences I am not implementing? Thanks for any help on this issue. I guess my question is what is the best and fastest way for me to get the letters into a text string format for printing in my report. Link to comment Share on other sites More sharing options...
Robert Schaub Posted March 3, 2005 Share Posted March 3, 2005 Set Field [YourField] [substitute(YourField,"¶"," ")] Link to comment Share on other sites More sharing options...
Ender Posted March 4, 2005 Share Posted March 4, 2005 This may be obvious, but if you want to keep the original field intact, then use the substitute() function above in a new calc field instead of using a script. Link to comment Share on other sites More sharing options...
The Digital Man Posted March 8, 2005 Author Share Posted March 8, 2005 Thank you guys. Am I understanding Ender right. Once I strip the returns out of the field than the field won't display correctly on my first entry screen with the checkboxes? I am assuming this to be correct. So I will use a seperate field. Link to comment Share on other sites More sharing options...
-Queue- Posted March 10, 2005 Share Posted March 10, 2005 Correct. The carriage returns (¶) are what cause multiple checkbox items to display correctly. Substituting spaces for them into your original field will cause all items to appear on the same line and none of the items will appear to be checked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.