Click or drag to resize

IScriptingEventsOnAfterWriteReplicationFile Method

Called after a replication file has been written (not if there were no data waiting)

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

Parameters

travellerid
Type: SystemInt32
filenumber
Type: SystemInt32
filepath
Type: SystemString
Examples

Description

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

VB
Sub OnAfterWriteReplicationFile

    If Database.DataSourceVariant = 1 Then 'enDBVariantTravel
    SOMessageBox "Make sure the file is sent to the central archive if you did not use SORT"
    ElseIf Database.DataSourceVariant = 0 Then 'enDBVariantCentral
    SOMessageBox "New updates ready for your satellites and travellers"    
    ElseIf Database.DataSourceVariant = 2 Then ' enDBVariantSatellite
    SOMessageBox "New updates ready for your central database and travellers"        
    End If

End Sub

See Also