remove

remove String Function

This topic describes the syntax and usage of the remove function in Zoho Creator .

Description

The remove function eliminates the specified part of a string and returns the remaining string.

Syntax

<string>.remove(<substring>)

(or)

remove(<string>,<substring>)
// this format is supported only in the free flow scripting mode of Script builder.

The remove function syntax has the following arguments.

string - Required. The main string from which you what to remove the specified string (substring).

substring - Required. The string to be removed from within the main string (string).

Example

Name = "ZohoCreator";

Name.remove("Zoho") //returns "Creator"

 

Name = "ZohoCreator";

remove(Name,"Zoho") //returns "Creator"

 

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com