Variables.ImportDirect



ImportDirect(bsFileName As String,bIECDTOvw As Boolean,bUDTOvw As Boolean) As Long

Parameters

bsFileName As String
String that defines the *.xml file which should be imported.
bIECDTOvw As Boolean
Should be set to true when existing standard datatypes should be overwritten by the imported ones.
bUDTOvw As Boolean
Should be set to true when existing user defined datatypes should be overwritten by the imported ones.
ED
avaliable
RT
not used

Remarks

This method should import variables with its datatypes from a *.xml file without any import dialog.

Sample:


Sub ImportDirect()

Dim zVariables As Variables 'Object from type variables

'Get the list of variables
Set zVariables = thisProject.Variables
'XML import variables (without any dialog), without changing standard and user defined datatypes
Debug.Print zVariables.ImportDirect("C:\xml_files\export_var.xml", False, False)

End Sub


See Also

Variables