WPTools Manual



Search


(press enter to search)

Function TWPStringBuilder.AppendWithVariables(Source:string; VarStart:; VarEnd:; CallBack:TWPReplaceVarEvent; DefaultDelimiter:Char) : string

Unit: WPRTEPlatform
Class: WPRTEPlatform.TWPStringBuilder

Parameters

  • Source:string
  • VarStart
  • VarEnd
  • CallBack:TWPReplaceVarEvent
  • DefaultDelimiter:Char

Returns

The type of the result value is string.

Description

Append a string which may contain simple variables which are enclosed in certain Tokens. A Callback is used to provide the contents for the variables. Requires WPTools Premium. You can specify a character "DefaultDelimiter" to seperate a default value which will be used in case the variable is an empty string. If the value starts with that delimiter, it is used as variable and the callback is called again.