getDictionary()

Reads entries of the dictionary.

Synopsis

int getDictionary(dyn_uint langIdxList,dyn_dyn_string &entries);

Parameters

Parameter Description
langIdxList Indices of the entries
&entries Entries of the translation table

Return value

If successful, the function returns 0 otherwise, -1.

Error

Description

In entries, returns all the entries of the dictionary (internal translation table) of the languages whose index has been found in langIdxList.

Example

The following example outputs the 5th entry of the dictionary in the first language.

main()
{
  dyn_int du;
  dyn_dyn_string e;
  du=makeDynUInt(0,1,2); // the languages to be added
  getDictionary(du,e);
  DebugN(e[5][1]);
}

Assignment

Multi-language capability

Availability

CTRL