Unofficial Content
  • This documentation is valid for:

Properties data type


Scope

Objects: Procedures, Transactions, Work Panels, Web Panels
Languages: Java, .NET
Interfaces: Web, Win


Description


This type represents a key-value list and it can be used for many purposes. E.g. it can be used as a filter in GetAttribute? method of LDAPClient data type. It can also be used when using Queue data type.


Methods


Set(char id, char value)
Adds an attribute to be used as a filter.

Clear()
Clear all the key-value pairs added.

<char> = Get(char key)
Returns the value of a given key. E.g.: &value = &prop.get(&myKey)

Remove(char key)
Removes the specified key.


Iterating properties


In order to read all the properties stored in a Properties variable, the Property data type must be used. E.g.

for &auxProperty in &myProperties
    msg(&prop.Key)
    msg(&prop.Value)
endfor


where the type of &auxProperty is Property (see Property data type).

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant