"capitalize" Snippets


Basket #68875

capitalize a string
Created: 1510761276
View "Basket #68875"
<mvt:assign name="g.str" value="'caleb was a dog'" /> <mvt:assign name="g.capitalize" value="toupper(substring(g.str,0,1)) $ subString(g.str,2,len(g.str))" /> &mvt:global:capitalize;
 

Basket #68747

capitalize a string
Created: 1510572513
View "Basket #68747"
<mvt:assign name="g.string" value="'asx asxaxs asas'" /> <mvt:do file="g.Module_Library_Utilities" name="l.null" value="SplitString( g.string, ' ', g.array )" /> &mvt:global:array;
 

Basket #55979

capitalize a string
Created: 1503004065
View "Basket #55979"
<h2>MivaScript MOD</h2> <p>MivaScript has a built in Modulus opperator: <code>MOD</code></p> <mvt:assign name="l.settings:total_ports" value="112" /> <mvt:assign name="l.settings:total_blocks" value="floor((l.settings:total_ports -1) / 24) +1" /> <code>total blocks:</code>&mvt:total_blocks;<br></br> <mvt:if expr="l.settings:total_ports GE 112"> <code>wait! please call us</code> </mvt:if>
 

Basket #29601

capitalize a string
Created: 1485552377
View "Basket #29601"
<mvt:assign name="g.str" value="'chris dye'" /> <mvt:assign name="g.capitalize" value="toupper(substring(g.str,0,1)) $ subString(g.str,2,len(g.str))" /> &mvt:global:capitalize;
 

capitalize

capitalize a string
Created: 1453744065
View "capitalize"
<mvt:assign name="g.str" value="'caleb'" /> <mvt:assign name="g.capitalize" value="toupper(substring(g.str,0,1)) $ subString(g.str,2,len(g.str))" /> &mvt:global:capitalize;
 

capitalize

capitalize a string
Created: 1453743986
View "capitalize"
<mvt:assign name="g.str" value="'caleb'" /> <mvt:assign name="g.firstLetter" value="substring(g.str,0,1)" /> <mvt:assign name="g.capitalize" value="toupper(g.firstLetter) $ subString(g.str,2,len(g.str))" /> &mvt:global:capitalize;