bheyde
9/5/2014 - 9:15 PM

DTS: Built-in Functions

DTS: Built-in Functions

// Length Function

<mvt:assign name="g.string" value=" 'Miva Merchant Version 9 is the current version of Miva Merchant.' " />

<mvt:assign name="g.string_length" value="len(g.string)" />
&mvt:global:string_length;
// Substring Function

<mvt:assign name="g.string" value=" 'Miva Merchant Version 9 is the current version of Miva Merchant.' " />

<mvt:assign name="g.substring" value="substring( g.string, 14 , len(g.string) )" />
&mvt:global:substring;
//Global Substitution Function

<mvt:assign name="g.string" value=" 'Miva Merchant Version 9 is the current version of Miva Merchant.' " />

<mvt:assign name="g.new_string" value="glosub(g.string, 'Miva Merchant' , 'Miva')" />
&mvt:global:new_string;
// Get Token Function

<mvt:assign name="g.list" value=" 'apples,oranges,bananas,grapes' " />

<mvt:assign name="g.first" value="gettoken(g.list, ',' , 1)" />
&mvt:global:first;