Phil,
Also look at cpzero.prg in VFP help. You call cpzero() to set the code page before you open the table.
>Hi,
>I'm writing some code in vis fox that uses tables created in foxpro2.6 for Dos which are also still used by some fox for dos applications.
>When i open the tables exclusively I get a message asking me to select the code page that the table was created in.
>I want my program to run overnight and it will deal with a lot of tables.
>I've tried using a custom error method to retry the use command but the code page message doesn't seem to be an error so my method doesn't get called.
>
>Does anyone know of a way to get around this without user intervention.
>
>Phil.
Steve Gibson