|
Postel Control - WriteStatus Event
Kadmos Postel ActiveX Control

Postel Control
WriteStatus Event
|
Description
|
Fired while batch file is being generated. Attivato durante la generazione del file di lotto.
|
|
Syntax
|
Private Sub Postel_WriteStatus(TotalRecords As Long, ProcessedRecords As Long)
|
|
Remarks
|
The WriteStatus event is fired while a batch file is being written. This event lets you know how close to completion the operation is and may be used to display a progress bar or other status indicator.
The following code, inserted in the WriteStatus event, will show a progress bar during gereation of batch file:
If ProcessedEntities = 0 Then ProgressBar1.Visible = True ProgressBar1.Value = 0 ProgressBar1.Min = 0 ProgressBar1.Max = TotalRecords End If
ProgressBar1.Value = ProcessedRecords
If ProcessedRecords = TotalRecords Then ProgressBar1.Visible = False End If
The parameters for the WriteStatus event are described below:
| TotalRecords | A long integer that specifies the total number of records of the exported table. | | ProcessedRecords | A long integer that specifies the number of the record being written. |
|
Copyright © 2001/2011 Kadmos.com - All rights reserved. Privacy Policy
|