If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Other PC Databases > converting dbf in visual foxpro 6.0 to foxpro 2.6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-07, 02:54
rsk_beckon rsk_beckon is offline
Registered User
 
Join Date: Jun 2007
Posts: 10
converting dbf in visual foxpro 6.0 to foxpro 2.6

Hai All

I am developing an application using visual foxpro 6 as backend. But my customer is using dos based foxpro 2.6.

Whether my .dbf and .fpt(memo) in vfpx 6.0 will directly open in 2.6 dbf or else i want to do any conversion?

whether this backward Compatibility works?

If i need to convert it, then how to do it.

Reply reply. Its urgent
Reply With Quote
  #2 (permalink)  
Old 07-28-07, 06:53
tod.mckenna tod.mckenna is offline
Registered User
 
Join Date: Jul 2007
Location: Belgium
Posts: 15
You will be able to open the Fox 2.6 tables in VFP6 without problem. You can even use the "COPY TO" command to copy cursors or other files created in VFP6 to the Fox2.6 version:

Code:
USE customer  && Opens Customer table
COPY TO sometable TYPE FOX2X
But do not use Alter Table (or the MODIFY STRUCTURE) command from VFP6, otherwise FoxPro will save the table in the new format. Either make structural changes in Fox2.6 or use COPY TO TYPE FOX2X when done.

You should also be aware of new field types (Currency, DateTime, Double, and Integer) that do not exist in Fox26.

If I remember correctly (it's been a while since I've opened Fox26 tables in a VFP production environment), you may get codepage dialogs whenever you try to open the Fox26 tables from VFP6. If you do, then you can skirt around this by looking into the SET CPDIALOG Command (and related functions). Codepage translation is important, so be careful before you decide to just shut this off!
__________________
Tod means Fox :: Follow me on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-28-07, 07:10
rsk_beckon rsk_beckon is offline
Registered User
 
Join Date: Jun 2007
Posts: 10
Reg. copying the specific Fields

Thanks for given me the suggestion. Now my original table ie.vfpx 6.0 contains nearly 20 fields. I have included my own fields for validation, but i need only certain fields which is useful for customer to be sent.

So i need to create another table with the same name and copy only the fields that are necessary for the customer and dropping other fields and send this to our customer so that they can directly upload to their dbf. I am using vb 6.0 as front end.

How i have to code in vb for this particular case. I am also using .fpt for a memo field. whether it is possible to code in visual foxpro directly. I dont know much about foxpro commands. If anyone knows, Please suggest me.
Reply With Quote
  #4 (permalink)  
Old 07-28-07, 07:15
tod.mckenna tod.mckenna is offline
Registered User
 
Join Date: Jul 2007
Location: Belgium
Posts: 15
Simple.

Just use the COPY TO command and include the FIELDS clause along with TYPE FOX2X.

Code:
USE customer  && Opens Customer table
COPY TO sometable FIELDS field1, field2, field3 TYPE FOX2X
__________________
Tod means Fox :: Follow me on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-15-07, 23:13
byrman byrman is offline
Registered User
 
Join Date: Oct 2007
Posts: 2
yes, copy to xxxxxxxx type foxplus...................
Reply With Quote
  #6 (permalink)  
Old 11-06-07, 04:54
hndubey hndubey is offline
Registered User
 
Join Date: Nov 2007
Posts: 1
Lightbulb dbf conversion

you will have to convert your vfp 6 dbf file into 2.6 foxpro
the command is :
in command window - vfp 6.0
USE ABC
COPY TO BCD TYPE FOX2X


The file bcd.dbf can be use in foxpro 2.6

Quote:
Originally Posted by rsk_beckon
Hai All

I am developing an application using visual foxpro 6 as backend. But my customer is using dos based foxpro 2.6.

Whether my .dbf and .fpt(memo) in vfpx 6.0 will directly open in 2.6 dbf or else i want to do any conversion?

whether this backward Compatibility works?

If i need to convert it, then how to do it.

Reply reply. Its urgent
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On