Built-in function | Description | Example |
Gets prefix of the specified search text in the input text. This function performs case-insensitive search. | inputText = "Zoho Deluge"; searchText = "DELUGE"; info inputText.getPrefixIgnoreCase (searchText); // Returns "Zoho " | |
Gets suffix of the specified search text in the input text. This function performs case-insensitive search. | inputText = "Zoho Deluge"; searchText = "ZOHO"; info inputText.getSuffixIgnoreCase (searchText); // Returns " Deluge" | |
Replaces all occurrences of the specified search text in the input text with the specified new text. This function performs case-insensitive search. | inputText = "Zoho Creator Zoho Creator"; searchText = "CREATOR"; newText = "Deluge"; info inputText.replaceAllIgnoreCase (searchText, newText); // Returns "Zoho Deluge Zoho Deluge" | |
Replaces the first occurrence of the specified search text in the input text with the specified new text. This function performs case-insensitive search. | inputText = "Zoho Creator Zoho Creator"; searchText = "CREATOR"; newText = "Deluge"; info inputText.replaceFirstIgnoreCase (searchText, newText); // Returns "Zoho Deluge Zoho Creator" | |
Returns a text with the characters of the input text in reverse order. | inputText = "Deluge"; info inputText.reverse(); // Returns "eguleD" | |
repeat | Returns a text with the input text repeated for the specified number of times. | inputText = "Deluge"; repeatCount = 3 info inputText.repeat (repeatCount); // Returns "DelugeDelugeDeluge" |
Checks if all characters of the input text are valid ASCII characters. | inputText = "ZohoßDeluge123"; info inputText.isAscii(); // Returns false |
Built-in function | Description | Example |
Returns the fraction part of the input number. | inputNumber = "24.6"; info inputNumber.frac(); // Returns 0.6 |
Built-in function | Description | Example |
Returns the next immediate date from the input date that falls on the specified day. | inputDate = '22-Jul-2021'; // is a Thursday inputDay = "Sunday"; info inputDate.nextWeekDay (inputDay); //Returns 25-Jul-2021 | |
Returns the immediate previous date of the input date that falls on the specified day. | inputDate = '22-Jul-2021'; inputDay = "Tuesday"; info inputDate.previousWeekDay(inputDay); //Returns 20-Jul-2021 | |
Subtracts the specified number of business day from the input date. | inputDate = '21-Jul-2021'; businessDays = 5; weekends = {"Sunday"}; holidays = {'20-Jul-2021','19-Jul-2021'}; info inputDate.subBusinessDay (businessDays, weekends, holidays); // Returns 13-Jul-2021 |
Writer is a powerful online word processor, designed for collaborative work.