Difference between revisions of "SQLiteBackupInterface.Progress"

From Xojo Documentation

(Created page with '<ShowIf version=2013r1> {{MethodBox | name=Progress | owner=SQLiteBackupInterface | ownertype=class | parameters=percent As Double, ByRef cancel As Boolean | scope=public | p…')
 
 
Line 10: Line 10:
 
{{Description
 
{{Description
 
|text = This method is called for you as the [[SQLiteDatabase.Backup]] progresses, supplying the percent complete in ''percent''. To cancel the backup, set ''cancel'' to True. }}
 
|text = This method is called for you as the [[SQLiteDatabase.Backup]] progresses, supplying the percent complete in ''percent''. To cancel the backup, set ''cancel'' to True. }}
 +
 +
 +
== Example ==
 +
If your implementing class has a reference to a [[ProgressBar]], you can update it using the ''percent'' value:
 +
 +
<rbcode>
 +
If BackupProgressBar <> Nil Then
 +
  BackupProgressBar.Maximum = 100
 +
  BackupProgressBar.Value = percent*100
 +
End If
 +
</rbcode>
  
  

Latest revision as of 14:58, 10 April 2013


Method

SQLiteBackupInterface.Progress(percent As Double, ByRef cancel As Boolean)

Supported for all project types and targets.

This method is called for you as the SQLiteDatabase.Backup progresses, supplying the percent complete in percent. To cancel the backup, set cancel to True.


Example

If your implementing class has a reference to a ProgressBar, you can update it using the percent value:

If BackupProgressBar <> Nil Then
BackupProgressBar.Maximum = 100
BackupProgressBar.Value = percent*100
End If


See Also

SQLiteDatabase.Backup