Normal Topic @AppendStringArray (Read 995 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
@AppendStringArray
Aug 12th, 2010 at 2:16pm
Print Post Print Post  
I have an element in my file where the users keep a change log.  Each change is on a new line and starts with a date.  I want to use Mass Update to make a change and I want to add a line to the bottom ot the change log element. 

I've been able to append the string, but it appears attached to the end of the last line in the element. 

Is there some way to make the new string start on a new line?
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: @AppendStringArray
Reply #1 - Aug 12th, 2010 at 2:31pm
Print Post Print Post  
It doesn't sound like you need to be using "AppendStringArray". The @Newline function will produce the characters necessary to force a new line for your OS.

str = "some stuff" + @NewLine() + "more stuff"

Quote:
some stuff
more stuff
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: @AppendStringArray
Reply #2 - Aug 12th, 2010 at 2:49pm
Print Post Print Post  
Thanks!  Tried your suggestion and it worked great!
  
Back to top
 
IP Logged