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
Syntaxvoid OnBeforeReadReplicationFile(
int travellerid,
string filepath
)
Sub OnBeforeReadReplicationFile (
travellerid As Integer,
filepath As String
)
Dim instance As IScriptingEvents
Dim travellerid As Integer
Dim filepath As String
instance.OnBeforeReadReplicationFile(travellerid,
filepath)
void OnBeforeReadReplicationFile(
[InAttribute] int travellerid,
[InAttribute] String^ filepath
)
Parameters
- travellerid
- Type: SystemInt32
- filepath
- Type: SystemString
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnBeforeReadReplicationFile
If Database.DataSourceVariant = 1 Then
SOMessageBox "New updates will be added to the traveldatabase"
ElseIf Database.DataSourceVariant = 0 Then
SOMessageBox "New updates will be added to the central database"
ElseIf Database.DataSourceVariant = 2 Then
SOMessageBox "New updates will be added to the satellite database"
End If
End Sub
See Also