Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.xharbour

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2012, 08:32 AM
wgreg66
Guest
 
Posts: n/a
Default DBF File type change after append blank with memo filed.

Hi,

REQUEST DBFCDX
*------------------------------------------------------------------------------*
Function Main()
*------------------------------------------------------------------------------*
Local aStru:={{'FIELD1','C', 4, 0},;
{'FIELD2','M',10, 0}}

RDDSetDefault('DBFCDX')

dbCreate('test',aStru)

Use test NEW

//First byte of dbf header contain 0xF5 (FoxPro 2.x (or earlier) with memo)

Append Blank

//Now first byte of dbf header contain 0x30 (Visual FoxPro)

Close

Return NIL

Is this correct behavior?
In Harbour this behavior doesn't occur.

Regards
Grzegorz
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 08-16-2012, 10:13 AM
wgreg66
Guest
 
Posts: n/a
Default Re: DBF File type change after append blank with memo filed.

Hi,

I found the cause of the problem in \source\rdd\dbf1.c

I change from:

5239 case 0xF5: /* FoxPro w. memo file */
5240 pArea->bTableType = DB_DBF_VFP;
5241 pArea->fHasMemo = TRUE;
5242 pArea->bMemoType = DB_MEMO_FPT;
5243 break;

To:

5239 case 0xF5: /* FoxPro w. memo file */
5240 //pArea->bTableType = DB_DBF_VFP;
5241 pArea->fHasMemo = TRUE;
5242 pArea->bMemoType = DB_MEMO_FPT;
5243 break;

Can anyone confirm this and fix this.

Regards
Grzegorz
Reply With Quote
  #3 (permalink)  
Old 08-16-2012, 10:24 AM
wgreg66
Guest
 
Posts: n/a
Default Re: DBF File type change after append blank with memo filed.

Hi,

I found cause of problem in \source\rdd\dbf1.c

I change from:

5239 case 0xF5: /* FoxPro w. memo file */
5240 pArea->bTableType = DB_DBF_VFP;
5241 pArea->fHasMemo = TRUE;
5242 pArea->bMemoType = DB_MEMO_FPT;
5243 break;

to:

5239 case 0xF5: /* FoxPro w. memo file */
5240 //pArea->bTableType = DB_DBF_VFP;
5241 pArea->fHasMemo = TRUE;
5242 pArea->bMemoType = DB_MEMO_FPT;
5243 break;

and works fine.
Can anybody confirm this and fix this.

Regards
Grzegorz
Reply With Quote
 
Reply

Thread Tools
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:02 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.