Navigation:  Reference > Functions >


Print this Topic Previous pageReturn to chapter overviewNext page





This function will convert an old style Btrieve file to a standard CodeBase (DBF) file based on entries in the data dictionary.




1 f/c/eRequired - The file to convert.  This is the name of the file as currently in FILELOC (locations).


2 f/c/eThe company code, if any.  If you don't include a value here the program will use the default company code of 'B  ' (B+2 spaces).  You may either include the complete company code (B+company code) or just the last two characters.


       NOTE:  If you specify a company code here there must be a record in FILELOC for this file name and company code.  This is where the program will get the path for the file.


3 f/c/eIf you want to make sure to initialized the file before conversion make this 'Y' or .T.  If you do not do this, and the file already exists, the converted records will be added to the file.


4 f/c/eIf you made part 3 .T., and the file already exists, you may want to alert the user to that before it is initialized.  If so, make this value 'Y' or .T.  The default value is .F. which means the user won't be notified if the file exists.



Returns .T. if the file was converted properly, .F. if not.



This function will do all that is necessary to convert a Btrieve file to a DBF file at the proper location.  The appropriate record must already exist in FILELOC before this process will work properly.


NOTE:  A new record will be created in FILELOC for this file.  The original company code will be changed so that it starts with C instead of the current B.  So, if you are converting a file with a company code of B01 the new file will have a company code of C01.


NOTE:  If you are converting from a previous version of TAS Professional you must run DBF_FLDS.RWN before you can convert to DBF files.  This will create the entries in FILEDBF that are required before DBF files can be created.






Page url: