Web+ Tutorial

Previous

  Contents  

Next

Lesson 3.2 - String Processing Functions

Syntax
#Asc(string)#
#Chr(N)#
#LCase(string)#
#UCase(string)#
#Len(string)#
#Left(string, N)#
#Right(string, N)#
#Mid(string, start, [lenght])#
#InStr([start], string1, string2, [mode])#
#StrReplace(string, string, string)#

Agument
/tutorial/argument/arg10.wml
Example
#Asc("A")#
#Chr(65)#
#LCase("TalentSoft")#
#UCase("Web+")#
#Len("Great")#
#Left("Pacific Gateway", 7)#
#Right("Talent Information Management", 10)#
#Mid("Web+ is Great", 9, 5)#
#InStr(10, "TalentSoft Web+", "w", 1)#
#StrReplace("Web+", "+", "plus")#

Sample
<webSet #string# = "TalentSoft Web+ is Great">
<webPrint>
#Asc("+")#<br>
#Chr(87)#<BR>
#LCase(string)#<br>
#UCase(string)#<br>
#Len(string)#<br>
#Left(string, 15)#<
Result:
Exercise

You can try out some Web+ code of your own here.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com