... value
v_HexValue = v_HexGiven.replaceAll("#", "").toUpperCase();
//
// using a regular expression: split into pairs of characters or if short hex given, then split into 3 characters
l_HexParts = v_HexValue.replaceAll("(?)",",",false).toList().subList(1,4);
if(v_HexGiven.toString().len()>4)
{
l_HexParts ...
... _
if(!isNull(v_Template.get("templates").get("actions")))
{
// get the actions
l_Actions = v_Template.get("templates").get("actions").toList();
for each m_Action in l_Actions
{
if(m_Action.get("action_type") ...
... statement execution limit exceed Line:(10)" but it will info out each number to increment:
//
l_Loop = " ".leftpad(5000).replaceAll(" ", ",").toList();
//
for each index v_Iteration in l_Loop
{
info ...
What?
There are already articles out there that document this but I use this more and more and would rather just find it on my site than going through multiple bookmarks.
Why?
This use-case is ...
... = List();
l_LastNameParts = v_LastName.toList("-");
for each v_LastNamePart in l_LastNameParts
{
//
// default to proper
v_LastNamePart = v_LastNamePart.proper();
//
// if exception prefixes
for ...
... now let's generate the page list to have all the available pages
v_TotalNumberOfPages = ceil(v_MaximumOrders / v_PerPage);
l_AddPages = leftpad(" ",v_TotalNumberOfPages).replaceAll(" ",",").toList();
for ...
... a list based on the number of days ago (list of dates to check)
l_GeneratedList = leftpad(" ",v_DaysAgo).replaceAll(" ",",").toList();
//
// loop through
for each index v_Index in l_GeneratedList
{
// ...
... ", ",").toList();
for each index v_Increment in l_AddPages
{
l_Pages.add(v_StartingPageIndex + v_Increment);
}
v_TotalNumberOfPages = l_Pages.size();
//
// declare variables to store order details ...
... with this many spaces using leftpad
v_GeneratedList = leftpad(" ", v_CheckDaysAhead).replaceAll(" ",",");
//
// convert string to a list
l_GeneratedList = v_GeneratedList.toList();
//
// initialize ...
... specified in a previous multi-line text field
l_PackageRefs = c_Appt.Associated_Package_Slips1.toList();
//
// important to declare this as a list of integers
l_PackagesToAdd = List:Int();
for ...
... = v_HtmlEntityNames.toList();
l_HtmlEntityChars = v_HtmlEntityChars.toList();
//
// add these exceptions (quotes) which wouldn't convert to a list
l_HtmlEntityNames.add("quo");
l_HtmlEntityNames.add("apos");
l_HtmlEntityChars.add("\"");
l_HtmlEntityChars.add("'");
//
// ...
... pure Deluge no Regex
v_DelugeDate = v_TestDate.toList("/").get(2) +"-"+ v_TestDate.toList("/").get(1) +"-"+ v_TestDate.toList("/").get(0);
info v_DelugeDate;
info v_DelugeDate.toDate();
info v_DelugeDate.toString("E, ...
... v_FormattedString;
// yields: 00011,Joel Lipman,"Flat 8|mySpecialComma| House Corner",Brummieland
// split into a list (string delimited by commas)
l_StringParts = v_FormattedString.toList();
// ...
... to split a string into a list by the backslash character:
v_File = "C:\Documents\My_File.txt";
// want to extract My_File.txt
l_FileParts = v_File.toList("\\");
info l_FileParts.get(l_FileParts.size() ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.