Xbasic
A5_DICTIONARY_READ Function
Syntax
Code as C = a5_dictionary_read(C dictionary ,C type ,C name [,L delete [,L lBlob [,C extendedAction [,C newName ]]]])
Arguments
- Code
Xbasic code.
- dictionary
The name of a dictionary file containing a toolbar. Character
- type
"tlbr" = Toolbar, "menu" = Menu. Character
- name
The name of the toolbar object. Character
- delete
Logical
- lBlob
Logical
- extendedAction
Character
- newName
Character
Description
Reads a record from a data ditionary. If lBlob is .T., value is returned as a blob. ExtendedAction can be '', 'Rename' or 'SaveAs'
Discussion
The A5_DICTIONARY_READ() reads the Xbasic code associated with a toolbar or menu from a dictionary file.
Example
The following script reads the contents of a toolbar named mainmenu into a character variable.
dict = "C:\Program Files\A5v6\Samples\Alphasports\Alphasports.Alb" tb = a5_dictionary_read(dict, "tlbr", "mainmenu") ? tb = ...
The following script writes the code ( newtb ) for a toolbar named mainmenu into the dictionary file Alphasports.Alb.
a5_dictionary_write(dict, "tlbr", "mainMenu", newtb)
Limitations
Desktop applications only.
See Also