ReplaceRule Property
      
 

Description

Determines file replace rules.


Property type

An ReplaceRulesEnum enumeration.  


Syntax

object.ReplaceRule [= value]



The ReplaceRule Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodAppUpdate.
value An ReplaceRulesEnum value.

Settings
The settings for value are:
Constant Value Description
 ReplaceNever 0 Never replaces.
 ReplaceIfVersion 1 Replace only if higher version.
 ReplaceIfDate 2 Replace only if newer creation date.
 ReplaceIfModificationDate 4 Replace only if newer modification date.
 ReplaceSmart 63 Replace by version, then by creation date, then by modification date.
 ReplaceAlways 255 Replace always.

Remarks

ReplaceRule value determines when will wodAppUpdate set NeedReplace property to True for some file. By default, ReplaceRule is set to ReplaceSmart - it will check both Version and Date (if available) to determine if local file should be updated or not. You can, however, change this behavior to suit your needs better.