Custom Functions - Search / Contains

| No Comments | No TrackBacks
There is no string contains function by default, but one can be added using the code below.





Code:

var n=InputString.indexOf("in field 'Serial number' is not found in relating table 'Serial numbers'.");

if(n != -1)
{
    return 'Serial number is not found';
}


No TrackBacks

TrackBack URL: http://asaiam.com/mt-tb.cgi/17

Leave a comment

About this Entry

This page contains a single entry by AsA published on April 12, 2013 1:41 AM.

Custom Functions - Generate GUID and NULL Return was the previous entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

Powered by Movable Type 5.01