Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_BaseInstanceXF Base Module

Public Function subst (
text As String,
ParamArray ValueList()
) As String

Parameter substitution: substitute the passed values for %1, %2 etc in the string

text as String

the string value contining placeholders such as %1, %2, etc

ParamArray ValueList() as Variant

list of values to be inserted into the string

Call Template:

Dim s As String
s = subst(text, ValueList)

See Also:

Example 1:

Debug.Print subst("Hi, %1, please %3 to the %2", "John", "river", "jump")
prints: Hi, John, please jump to the river
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd