Subst

Result = Subst ( Pattern , ReplaceString [, ReplaceString ])

Replaces arguments &1, &2, etc. in a pattern with the first, second, and subsequent ReplaceStrings respectively, and return the result.

If Pattern is null, then a null string is returned.

For C developers, this is not unlike a simplified sprintf.

Example :

PRINT Subst("Gambas is &1", "BASIC")
=> Gambas is BASIC


Referenced by :