Back to product page

ReplaceInConfig event


Fires when component finds "<>" tags in config file

Syntax

  • Basic
Private Sub object_ReplaceInConfig(Text)
The ReplaceInConfig(object,Text) syntax has these parts:
objectA wodAppUpdate object.
TextA String object. Holds String values found.

Remarks

ReplaceInConfig event fires when component finds "<>" tags in config file. The event is triggered after Check method is executed, but before CheckDone event is fired. Text parameter will hold each value found in between the "<>" tags.

Each value found between the tags will be separated by a newline constant. This event is very useful if you wish to change certain parts of configuration file *on the fly*.

I.e. if config file contains:
    Path=\somefile.ext
ReplaceInConfig event will be triggered with Text parameter containing "MyCustomPathVariable". At that time, you can replace this with your custom path, and component will use it instead.

Platforms

Windows