2.274 .real_version[enum]

With this attribute of the document object it can be queried if the desired version of the XML toolkit has been loaded. Querying this attribute forces the XML toolkit to be loaded. If the XML toolkit could not be loaded, -1 is returned; otherwise the value of .version[enum] is returned.

The optional index for this attribute is the toolkit enumeration. If no index is given, the current toolkit is accessed implicitly.

Currently toolkit_windows is the only index value supported, because only Microsoft Windows allows to set the runtime version of the MSXML control. To indicate the version number, the major version has to be multiplied with 100 and the minor version has to be added if applicable. When 0 is given as version number, the system’s default version of the MSXML control is loaded.

Definition

  • Data type

    integer

  • Access

    get

Example

MSXML 5.0 shall be used so that the XSD document type is supported.

this.version[toolkit_windows] := 500;

Afterward it is checked if MSXML 5.0 could be loaded.

if (this.real_version[toolkit_windows] = 500) then
  // OK
endif

See also

Attribute .version[enum]