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
Syntaxvoid OnAfterWriteReplicationFile(
int travellerid,
int filenumber,
string filepath
)
Sub OnAfterWriteReplicationFile (
travellerid As Integer,
filenumber As Integer,
filepath As String
)
Dim instance As IScriptingEvents
Dim travellerid As Integer
Dim filenumber As Integer
Dim filepath As String
instance.OnAfterWriteReplicationFile(travellerid,
filenumber, filepath)
void OnAfterWriteReplicationFile(
[InAttribute] int travellerid,
[InAttribute] int filenumber,
[InAttribute] String^ filepath
)
Parameters
- travellerid
- Type: SystemInt32
- filenumber
- Type: SystemInt32
- filepath
- Type: SystemString
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnAfterWriteReplicationFile
If Database.DataSourceVariant = 1 Then
SOMessageBox "Make sure the file is sent to the central archive if you did not use SORT"
ElseIf Database.DataSourceVariant = 0 Then
SOMessageBox "New updates ready for your satellites and travellers"
ElseIf Database.DataSourceVariant = 2 Then
SOMessageBox "New updates ready for your central database and travellers"
End If
End Sub
See Also