PDA

View Full Version : string.split() problem, pls help


Bad-CoMM
06-15-2005, 11:47 PM
hello

i have a problem with splitting a string at "enter" character.
i dont know how to write enter as a parameter for split().
i know that if i want to use enter key in a string, "\n" works..but doesent in string.split("\n")

pls help me if u know the answer

tg
06-16-2005, 04:46 AM
[crosspost]

pixelwit has already got this one.

Bad-CoMM
06-16-2005, 11:43 AM
sorry for double-posting. i posted 1st in there then i saw its only MX related...i didnt know if it would be different in mx 2004 so i reposted.
pixel solved my problem ty ag :)

icio
06-16-2005, 12:59 PM
String.split(newline);
hope this helps :)

tg
06-16-2005, 01:55 PM
s
pixel solved my problem ty ag :)

yep. i saw that. glad you got it workin.