Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

XML.Import.Total

Queries total items to be imported.

Component Version macOS Windows Linux Server iOS SDK
XML 5.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XML.Import.Total" )

Parameters

none

Result

Returns number.

Description

Queries total items to be imported.

Examples

Show the progress of an XML import:

Set Variable [ $r ; Value: MBS( "XML.Import"; $xml; Get( FileName ); "Import" ) ]
# total number of items to import
Set Variable [ $total ; Value: MBS( "XML.Import.Total" ) ]
Loop
    Pause/Resume Script [ Duration (seconds): 1 ]
    Set Variable [ $todo ; Value: MBS( "XML.Import.Todo" ) ]
    Set Variable [ $r ; Value: MBS( "ProgressDialog.SetProgress"; 100 * ( $total - $todo ) / $total ) ]
    Exit Loop If [ MBS( "XML.Import.Status" ) ≠ "Working" ]
End Loop

See also

Example Databases

This function is free to use.

Created 8th September 2015, last changed 6th November 2026


XML.Import.Todo - XML.Import.Work


MarkDown version: XMLImportTotal.md