Back to product page

ReplaceInConfig method


Called when component finds "<>" tags in config file.

Type

None

Syntax

  • Basic
object.ReplaceInConfig Owner, File
The ReplaceInConfig(object,Owner,Text) syntax has these parts:
objectAn expression evaluating to an object of type IwodAppUpdateNotify.
OwnerRequired. A wodAppUpdate object. Reference to wodAppUpdateCom instance that called this notification method.
TextA String object. Holds String values found.

Remarks

NOTE: This method is called only if you implemented IwodAppUpdateNotify interface in your application, and wodAppUp.Notification property has received reference to instance of your implementation.

ReplaceInConfig method fires when component finds "<>" tags in config file. The method is called after Check method is executed, but before CheckDone method 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 method 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 method will be called with Text parameter containing "MyCustomPathVariable". At that time, you can replace this with your custom path, and component will use it instead.

Platforms

Windows