Xbasic
A5_DICTIONARY_WRITE Function
Syntax
C a5_dictionary_write(C dictionary ,C type ,C name ,* contents [,L flagRefreshControlPanel ])
Arguments
- 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
- contents
Modified Xbasic code.
- flagRefreshControlPanel
Logical
Description
Writes a record to a data ditionary.
Discussion
The A5_DICTIONARY_WRITE() writes the Xbasic code associated with a toolbar into 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 new 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