Click or drag to resize

IScriptingEventsOnBeforeReadReplicationFile Method

Called before an attempt is made to find/read replication files for the given traveller (called only once, even if multiple files are available); the given path will be scanned for .DWN or .UP files

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnBeforeReadReplicationFile(
	int travellerid,
	string filepath
)

Parameters

travellerid
Type: SystemInt32
filepath
Type: SystemString
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
Sub OnBeforeReadReplicationFile

    If Database.DataSourceVariant = 1 Then 'enDBVariantTravel
    SOMessageBox "New updates will be added to the traveldatabase"            
    ElseIf Database.DataSourceVariant = 0 Then 'enDBVariantCentral
    SOMessageBox "New updates will be added to the central database"      
    ElseIf Database.DataSourceVariant = 2 Then ' enDBVariantSatellite
    SOMessageBox "New updates will be added to the satellite database"      
    End If


End Sub

See Also