SHARE
TWEET

Untitled

a guest Oct 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfscript>
  2. public void function segmentizeString(){
  3.     var testString = "1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaax2bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbx3cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccx"
  4.    
  5.     // get length of characters and divide by 75
  6.     var numOfSegments = 1;
  7.     var messages = [];
  8.     while( testString.len() > 75 ){
  9.         numOfSegments++;
  10.         testString.left( 75 );
  11.         testString
  12.     }
  13.     testString.len()
  14.    
  15. }
  16.  
  17. </cfscript>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top