It can be string or number depending on the catalog settings in the Configuration Manager.
Determines search mode by a complete code. True specifies that the searched code should be set as a string containing a sequence of codes by catalog level delimited by "/" symbol.
Default value: False.
Parent to be searched. If it isn't specified the search is performed in the whole catalog.
Owner, within which you should perform searching. If it isn't specified the search is performed in the whole catalog.
If there is no item with the specified code, an empty reference is returned.
If code is not set (length = 0) for a catalog, the Undefined value is returned .
| StringOfCode = "840";|
Currencies = Catalogs.Currencies;
FoundReference = Currencies.FindByCode(StringOfCode);
If FoundReference = Currencies.EmptyRef() Then
Message("There is no """ + StringOfCode + """ currency");