Component
Dictionary Component
34 language-reference entries were extracted for this component.
- Fnd_Dict_DataType This routine returns the data type of a key. The data type is a number which corresponds to 4D’s standard data type constants: Is Text Is Longint Is Real Is Boolean Is Date Is...
- Fnd_Dict_GetArray This method returns an array of values from a dictionary given a key.
- Fnd_Dict_GetBoolean This function returns a Boolean value with the specified key from a dictionary.
- Fnd_Dict_GetDate This function returns a 4D Date value with the specified key from a dictionary.
- Fnd_Dict_GetLongint
- Fnd_Dict_GetPointer This function returns the pointer with the specified key from a dictionary.
- Fnd_Dict_GetReal This function returns a floating point numeric value with the specified key from a dictionary.
- Fnd_Dict_GetText This function returns a text value with the specified key from a dictionary.
- Fnd_Dict_GetTime This function returns a 4D time value with the specified key from a dictionary.
- Fnd_Dict_HasKey This function tests whether or not a specific key exists in a dictionary. It will return True if the key exists.
- Fnd_Dict_ID This function returns the reference number with the first dictionary found with the specified name. Keep in mind that it is possible to create multiple dictionaries with the...
- Fnd_Dict_Info The Fnd_Date_Info method will respond to these requests: Request Response Example name The...
- Fnd_Dict_IsValid This function tests whether or not the specified dictionary reference is valid. It will return True if the reference is valid and can be used.
- Fnd_Dict_ItemCount Returns the number of items (or keys) in a dictionary.
- Fnd_Dict_Keys This command fills an array with the keys in the specified dictionary.
- Fnd_Dict_LoadFromBlob This function loads a dictionary from a 4D BLOB created by a previous call to Fnd_Dict_SaveToBlob. It returns the reference number to the new dictionary.
- Fnd_Dict_LoadFromFile This function loads a dictionary from the file specified by the path parameter. It returns the reference number to the new dictionary.
- Fnd_Dict_Name
- Fnd_Dict_New This funciton creates a new dictionary and returns its reference number. If no name is passed, the dictionary will be named "Dictionary n" where n is the dictionary’s reference...
- Fnd_Dict_Release This command decrements the retain count of a dictionary. Once the retain count reaches 0, the dictionary is automatically cleared from memory.
- Fnd_Dict_Remove Use this command to remove a key, and its associated data, from a dictionary.
- Fnd_Dict_Retain This command increments the retain count for a dictionary
- Fnd_Dict_RetainCount This function returns the retain count for the specified dictionary. If the dictionary reference is not valid, 0 is returned.
- Fnd_Dict_SaveToBlob Use this command to save a dictionary as a 4D BLOB. Because 4D’s XML creation routines were introduced in 4D 2004, this command will work only with 4D 2004 or later.
- Fnd_Dict_SaveToFile
- Fnd_Dict_SetArray Use this command to store an array of values in a dictionary. The array can be an array any of these types: Text or String Longint or Integer Real Boolean Date Pointer
- Fnd_Dict_SetBoolean This command adds the specified key and Boolean value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetDate This command adds the specified key and 4D date value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetLongint This command adds the specified key and long integer (or integer) value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetPointer This command adds the specified key and pointer to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetReal This command adds the specified key and floating numeric value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetText This command adds the specified key and text (or string) value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_SetTime This command adds the specified key and 4D time value to the dictionary. If the key already exists, the old value is replaced with this new value.
- Fnd_Dict_Values This function fills the text array with the values stored in the dictionary. All of the values will be returned as text, regardless of their actual data type.