How to find a carriage return using an event rule variable

tritone

Member
The user creates an attachment with one or more text lines separated by pressing Enter afetr each line.

I retrieve the attachment into a large event rule variable. When I view the variable, I can see each text line separated by a small square. I presume these squares are the embedded carriage returns.

I would like to substring each of thesetext lines into separate event rule variables but have been unable to define an event rule variable that is recognized as a carriage return.

There is a business function that will substring a text line into smaller parts based on a control character passed to it such as a "/" or a "%" but I do not want to have to have the user type a control character after each text line they input.

Thus far I have been unable to define the carriage return in any type of variable. Any ideas master developers?

Thanks Tony
 
Doesn't=20look=20as=20though=20any=20master=20developers=20have=20replied, =20so=20I'll=20have
a=20go=20instead=20;-)

I=20don't=20know=20what=20version=20you're=20on,=20but=20on=20our=20Xe=20s ystem=20there's=20a
business=20function=20B0800207=20"GetNewLineCharacter"=20which=20will=20re turn=20the
carriage-return=20char=20into=20a=20character=20variable.=20Is=20that=20an y=20use?

Cheers,
Mark


=09
 
Re: RE: How to find a carriage return using an event rule variable

[ QUOTE ]
Doesn't=20look=20as=20though=20any=20master=20developers=20have=20replied, =20so=20I'll=20have<br>a=20go=20instead=20;-)<br><br>I=20don't=20know=20what=20version=20you're=20on,=20but=20on=20our=20Xe=20s ystem=20there's=20a<br>business=20function=20B0800207=20"GetNewLineCharacter"=20which=20will=20re turn=20the<br>carriage-return=20char=20into=20a=20character=20variable.=20Is=20that=20an y=20use?<br><br>Cheers,<br>Mark<br><br><br>=09

[/ QUOTE ]

When I checked this Business Function out on E811, it came out as "Create GT08720 Status Change Media Object." While it does have the Get New Line Character function but it looks like it just returns the _J('\n') value, and that is all (does not look for this in the text string).

This looks to be a dummy function or just returning what the newline string looks like.

Some of interest may be
B0800780, StripSpecialCharsFromString
B0400520, ReplaceCharacterInString
N5200080, LocateCharacterInString

Take a look at this: post 96449 post 96449 , the attachment shows a process for getting the new new line character in the string.
 
Back
Top