... = 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() ...
... = userResp.executeXPath("/users/user");
if ((users != null) && (users != ""))
{
userList = users.toList("-|-");
for each user in userList
{
emailNode = user.executeXPath("/user/@email");
...
... = "00/01/02/03/04/05/06/07/08/09/10/11/12/13/14/15/16/17/18/19/20/21/22/23";
hourList = hourString.toList("/");
v_includeInPicklist = false;
for each index timeSlot in hourList
{
timeSlotStr ...
What?
This is a very quick note with the code to retrieve the full day name from a date (eg. "Monday").
Why?
If I use the toString() function to get the day, it only returns the first 3 letters ...
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.