Normal Topic String help (Read 614 times)
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
String help
Nov 12th, 2009 at 9:44pm
Print Post Print Post  
I have a string that looks like this:   result1;result2;result3;  it could contain more or less values depending on the search result. I send the string to a text editor box on the form. I need it to show in the text editor box like it would in a @popupchoicelist like this;

result1
result2
result3

Any help would be appreciated, thanks.
  
Back to top
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: String help
Reply #1 - Nov 12th, 2009 at 9:50pm
Print Post Print Post  
Hello tcgeo,
The following programming should do what you are after.

Code
Select All
var vString as String
   vString = "result1;result2;result3"

//Replace any semicolons with newlines.
My_Element  = @Replace(vString, ";", @Newline()) 


  
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: String help
Reply #2 - Nov 12th, 2009 at 9:55pm
Print Post Print Post  
Thank you very much Ben.  Works like a charm!

  
Back to top
IP Logged
 
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
Re: String help
Reply #3 - Nov 12th, 2009 at 11:13pm
Print Post Print Post  
nifty.  Thanks, Ben.  I'll use that, too.
  

Larry
Back to top
IP Logged