I have a string that I need to hack up based on * delimiters. There could be up to five fields, 4 asterisks, or less, if there is 3 *s then only the first 4 fields get filled, and so on. I have worked out the logic to break up the string, it's would go good with some marinara sauce, but it works.
How I got here. Basically, I converted a memo field via a view, cutting it down into 2 255 char length strings using a substring function. Had I left it in one piece, and it happens to be greater than 255 char length, it would be too long to manipulate further, crashing on string length limitation in Crystal. All this works well for what I needed to do. Is there an easier way, I'm sure, always is.
Okay, now the quirk I have has me thinking that one of these strings may at times contain a control character, one I'm not seeing but suspect a carriage return, line feed, and I wondered if a string can be scrubbed of such a character?
Any thoughts? Many thanks.
How I got here. Basically, I converted a memo field via a view, cutting it down into 2 255 char length strings using a substring function. Had I left it in one piece, and it happens to be greater than 255 char length, it would be too long to manipulate further, crashing on string length limitation in Crystal. All this works well for what I needed to do. Is there an easier way, I'm sure, always is.
Okay, now the quirk I have has me thinking that one of these strings may at times contain a control character, one I'm not seeing but suspect a carriage return, line feed, and I wondered if a string can be scrubbed of such a character?
Any thoughts? Many thanks.