www.icetips.com  Icetips Utilities Documentation 5/15/2016    

Utility Template: Export Global Data

Previous  Top  Next  


Note:  This template no longer exits.  Please use the "Prepare Multi-DLL app" template to export global data.

 

 

 

This template exports all global data that is in the application to a TXD file.  You can then simply import the TXD file into your dictionary to get all your global data from the application.  This is very handy when splitting a single application file into multiple DLLs.  Then it is very convenient to keep the Global data in the dictionary and then the templates will take care of exporting them correctly.

 

To start, select "Application | Template Utility" from the Clarion 6 main menu or "Application | Utility Template" from the Clarion 7 menu.  Alternatively you can hit Ctrl-U on the keyboard (both versions)

 

Template_Export_Global_Data_Utilities

 

Select the "ITExportGlobalData - Export Global Data" utility template from the "IcetipsUtilityTemplate" class.

 

Template_Export_Global_Data

By default the filename to use is set to "Global" and the prefix to "Glo"  If this does not match with what you need you can change it before you export the data.  Click the OK button to export the data.  It will be exported to a file that uses the same filename as the application (.app file) but with a "_global" appended to the name.   This is a fully qualified TXD file so it can be imported directly, however only the label and data type are exported.

 

The next step is import the .txd file into your dictionary.  Load the target dictionary file and select "File | Import Text" in Clarion 6.  In Clarion 7 please see the screenshot below:

 

Template_Export_Global_Data_Import_C7

 

Example:

 

[DICTIONARY]

VERSION '1.0'

CREATED '27 SEP 2009' ' 5:49PM'

MODIFIED '27 SEP 2009' ' 5:49PM'

 

[FILES]

Global FILE,DRIVER('TOPSPEED'),PRE(GLO),CREATE,THREAD

!!> USAGE(Global)

Record                   RECORD

BrowseInfoShown            BYTE

Test                       STRING(20)

                         END

                       END

 

 

 
This shows a generated TXD with two Global fields in it, ready to import into a dictionary. 



Direct link to this page: http://www.icetips.com/manuals/utilities/export_global_data.htm