Hi Claudia
You need to open (USE) dbf file with the foxpro driver and then all the dbf workarea commands will work.
I am assuming that all your data files are Foxpro so you can add these calls to you program at the start
you will need to REQUEST the driver files.
REQUEST DBFCDX // Causes DBFCDX RDD to be linked in
REQUEST DBFFPT // Causes DBFFPT RDD to be linked in
RddSetDefault( "DBFCDX" ) // Set up DBFCDX as default driver
Now DBSort() will create an FPT memo file.
in fact the old clipper way to do this was to use the following prg file called rddsys.prg
and just add it to your list of program files.
INIT PROCEDURES are called before the application starts
/***
*
* RddSys.prg
*
* This program is run each time your application is started to setup
* the proper default driver. You should modify a copy of this file
* if you wish to use a default RDD other than DBFNTX.
*
* Copyright (c) 1993, Computer Associates International, Inc.
* All rights reserved.
*
*/
ANNOUNCE RDDSYS // This line must not change
INIT PROCEDURE RddInit
REQUEST DBFCDX // Causes DBFCDX RDD to be linked in
#ifdef __HARBOUR__
REQUEST DBFFPT // Causes DBFFPT RDD to be linked in
#endif
RddSetDefault( "DBFCDX" ) // Set up DBFCDX as default driver
RETURN
// eof: rddsys.prg
Hope this helps
Geoff