String Manipulation

JDE0101

Active Member
hi all,

simplified example of my problem..

i have the following global variables in a section:
va1="test1"
va2="test"
va3="test3"

i have another conditonal section that i have 1 RV.
i want to have the output of each var on a seperate line: RV =
va11
val2
val3

but all i can do is concat....is there a new line character that i can throw..so i could have something like:
RV = va1+"\n"+va2+"\n" etc

thanks
B7333 JDED XE SP 17
 
Hi,

1.)
Create a Variable call cCR_EV01
Create a Variable call cLF_EV01
Create a Variable call szCRLF_DL01

2.)
Call BSFN B7400150 (Convert CR And LR to Hexadecimal) and assign the two CharVars to it as
Return Values.

3.)
Next concat the two Variables:
szCRLF_DL01 = concat(cCR_EV01,cLF_EV01)

4.)
Use this new Varible as your "\n"

hope this helps
 
I'm not sure if there is a way to do what you ask. Why don't you put three
RV's in your custom section, each on its own line to start with?



_____

From: [email protected] [mailto:[email protected]] On
Behalf Of woodsc
Sent: Wednesday, December 08, 2004 5:52 AM
To: [email protected]
Subject: String Manipulation



hi all,

simplified example of my problem..

i have the following global variables in a section:
va1=3D"test1"
va2=3D"test"
va3=3D"test3"

i have another conditonal section that i have 1 RV.
i want to have the output of each var on a seperate line: RV =3D
va11
val2
val3

but all i can do is concat....is there a new line character that i can
throw..so i could have something like:
RV =3D va1+"\n"+va2+"\n" etc

thanks
B7333 JDED XE SP 17

_____


The entire <http://www.jdelist.com/ubb/showflat.php?Cat=3D&Board=3D> JDELIST
thread is available for viewing.


This is the JDELIST EnterpriseOne Developers Mailing List.
The instructions on how to unsubscribe from any JDELIST mailing list are
available here <http://www.jdelist.com/unsubscr.shtml> .
JDELIST is not affiliated with JDEdwards=AE.
 
Hi woodsc,

Function "PadStringWithCarrigeReturn" from B9861B can do it too.

It's just a string concatenation of a \r\n at the end of the string.

Christian Audet
 
I remember Zoltan showed us:
Press the Enter key INSIDE the concat system function, as a concatenation member.
Don't forget to encompass it by ' string delimiters.
Something like this:
MyTwoLines = Concat(var1,'
')
MyTwoLines = concat(MyTwoLines,var2)
MyTwoLines = Concat(MyTwoLines,'
')
MyTwoLines = concat(MyTwoLines,var3)

... and so on
 
1) Create a variable NextLine_EV01.

2)Use BSFN B0800207 GetNewLineCharacter and get the new line character in NextLine_EV01 variable.

3) Use NextLine_EV01 variable in concatenation of the string.

This would work
 
also you can try this:

Var 2 = 1
Var 3 = 5
While Var 2 <= Var 3
RV 1 = ' '
RV 1 = concat (BC 1, BC 2)
Do custom(Section x)
Var 2 = Var 2 + 1
End

You need that RV = Global Variable
Section x = Conditional section
RV 1 is declared in Section x.

Hope this help
Regards Luis Felipe
 
Back
Top