VDF-GUIdance logo



  Visual DataFlex Logo
  

Shared knowledge leads to accumulated knowledge

        Printer Friendly Page


Size: 3 KB Download
Date Created: 10/19/2005
Date Updated: 10/19/2005
Author: Anders Íhrt
Company: Berendsen Textil Service AB
Summary:
DefGenerator can create .def and .fd files automatically. It also strips time/date and record count from .def files, so the files can be compared between the development and deployment environment.

Example usage:

Get_Attribute DF_FILELIST_NAME To sFilelist
Move (Replace("Data\Filelist.cfg", sFilelist, "DDSrc")) To sDirectory

Move (ClxCreate_ClcDefGenerator()) To hoDefGenerator
Send GenerateDefs Of hoDefGenerator sDirectory DF_AUX_FILE_FD
Send GenerateDefs Of hoDefGenerator sDirectory DF_AUX_FILE_DEF
Send StripDirectory Of hoDefGenerator sDirectory
Send Destroy Of hoDefGenerator

Def Generator


by Anders Íhrt

Description


DefGenerator can create .def and .fd files automatically.
In addition, it also strips time/date and record count from the .def files. This way it is much easier to compare the files between the development and deployment environment using software compare tools such as for example winmerge, beyond compare or araxis merge.
In short this is one of those tools which will make your life as a developer easier.

Example usage:



Get_Attribute DF_FILELIST_NAME To sFilelist
Move (Replace("Data\Filelist.cfg", sFilelist, "DDSrc")) To sDirectory

Move (ClxCreate_ClcDefGenerator()) To hoDefGenerator
Send GenerateDefs Of hoDefGenerator sDirectory DF_AUX_FILE_FD
Send GenerateDefs Of hoDefGenerator sDirectory DF_AUX_FILE_DEF
Send StripDirectory Of hoDefGenerator sDirectory
Send Destroy Of hoDefGenerator

Download



DefGenerator.zip ~ 3kB