FileStart Method
      
 

Description

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


Return Type

None  


Syntax

object.ReplaceIfConfig Owner, File



The FileStart Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodAppUpdateNotify.
Owner Required. A wodAppUpdate object. Reference to wodAppUpdateCom instance that called this notification method.
Text A 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.

ReplaceIfConfig 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=<MyCustomPathVariable>\somefile.ext

ReplaceIfConfig 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.