Italiano
Instant Developer Foundation Documentation
  • Library reference
  • Document Orientation
  • ID Document
  • Properties

Get Property

function link

Purpose

This function returns the current value of a public property of the document, referencing it by index.

It can therefore be useful to perform a loop and read all the public properties of the document, or to read the value of a property found with the GetPropertyIndex function, which returns the index of a property given its parameters (logical name, physical name, domain, etc.).

Syntax

string value = "" // Current Value
// 
value := Doc.GetProperty(property index)

Arguments

Property Index An integer from 1 to the number of public properties of the document specifying which property is to be returned. If the index is outside the values specified, an exception will be thrown.

Return value

Returns the current value of the specified public property of the document. This function has a String return type, but the type actually returned depends on the type of property referenced. For example, when an integer property is sought, the function returns an integer.

  • This function can be used to implement generic document services that can process documents without knowing the type.

Changed on: 23/03/2021 / From version: 6.5.2680

See also

  • Get Property Index (function)

Is this article helpful?

Thank you for your feedback!

Need more help?

Check out the forum