7.4

Table Of Contents
Right (function)
Extracts the specified rightmost characters of a string.
Syntax
right( string, number ) string value
Arguments
string
String value from which to extract characters.
number
Integer value specifying how many characters to extract from the end of the string.
Code Sample Example
This example prints part of a string, starting after a specific delimiter.
Example
define(&data,string,'This is a~sample string')
define(&x,integer, pos('~', &data)) %Find tilde
if(&x>1)
show(right(&data,length(&data)-&x))
%Show remainder of string
endif()
StringReplace (function)
Replaces all occurrences of a pattern within a string, with another pattern.
Syntax
stringreplace( string, old, new) string
Arguments
string
String in which you want to replace a pattern.
old
String value that defines the pattern you want to replace.
©2010 Objectif Lune Inc - 505 -