set vStr3 to vStr1 + " " + vStr2 or set vStr3 to concatenation of vSt1 and " " and vStr2 ***************************************************** set vStr1 to "Hello World" set vStr2 to substring of vStr1 from 0 to 5 0 H1 E2 L3 L4 O5 debug "String str2 :: " + vStr2 for retreiving world. set vStr3 to substring of vStr1 from 6 to 11 invoke methodName on VObjname using arg1, arg2 as parameter invoke methodName on vObjname set vValue to results of invoke methodName on vObjName indexOf in String int indexOf(Object obj) set vIntValue to results of invoke indexOf on vStr1 using "World" as parameter set vStr4 to substring of vStr1 from 4 if endIndex is not specified then it will read starting from startIndex to the end of the line. **************************************************** set vStr1 to " Test " debug "String str1 :: " + vStr1 String str1 :: Test set vStr1 to trim of vStr1 debug "String str1 :: " + vStr1 String str1 :: Test *********************************************************** set vStr1 to "abc" set vStr2 to "abc" //-- with the below syntax you will know only whether it is equal or not. if ( vStr1 = vStr2) then endif //-- to less or greater we require below syntax. set vIntValue to compare vStr1 to vStr2 Explanation ************************************ if vIntValue = -1 then vStr1 < vStr2 vIntValue = 0 then vStr1 = vStr2 vIntValue = 1 then vStr1 > vStr2 ************************************ SL syntax. if ( compare vStr1 to vStr2 = -1 ) then
//-- when ever vStr1 is less vStr2 then this will be called. endif