Append: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(edit)
(edit)
Line 3: Line 3:
  X$(inf:0)="append this to end"
  X$(inf:0)="append this to end"


Here, [[inf]] denotes '''infinity'''. So '''X$(inf:0)''' means "the substring of X$ starting at infinity". This is particularly useful when you don't know how long your string is and do not want to calculate its length.
OR
 
Another method that is almost as quick is:


  X$(inf:inf)="append this to the end"
  X$(inf:inf)="append this to the end"


or
Here, [[inf]] denotes '''infinity'''.


X$(inf:0)="append this to the end"
So '''X$(inf:inf)''' means "the substring of X$ starting at infinity". This is particularly useful when you don't know how long your string is and do not want to calculate its length.


<noinclude>
<noinclude>

Revision as of 13:09, 9 January 2012

To append to the end of a String you should (for maximum speed of code execution) use

X$(inf:0)="append this to end"

OR

X$(inf:inf)="append this to the end"

Here, inf denotes infinity.

So X$(inf:inf) means "the substring of X$ starting at infinity". This is particularly useful when you don't know how long your string is and do not want to calculate its length.