Solved
Forum Discussion
tristaanogre
8 years agoEsteemed Contributor
Can you describe how you are entering the carriage return into the cell? I've attempted to do so by using ALT-ENTER within a cell and what I get does return a string with multiple lines.
- shankar_r8 years agoCommunity Hero
You are right, I got the value.
If i want to split the value by carriage return(New Line) how can i do that?
- shankar_r8 years agoCommunity Hero
Using Javascript i tire the below options,
1)
mycellvalue.split("\r\n")
2)
var testRE = RegExp("\r\n");
mycellvalue.split(testR)
3)
mycellvalue.split(chr(13);
nothing is working for me..
- tristaanogre8 years agoEsteemed Contributor
I haven't tried it myself, but have you looked into the aqString.Split() method? That is not using native JavaScript but an internal function of TestComplete so it MIGHT work differently.
Related Content
Recent Discussions
- 15 hours agodhundley