FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveDBU : FPT -> DBT
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
FiveDBU : FPT -> DBT
Posted: Fri Oct 06, 2023 08:22 AM
hi,

i have create DBF with Fivewin
Code (fw): Select all Collapse
   DBCREATE( datei, field_list, "DBFCDX" )
so i got FPT as Extension

while i have forgot a FIELD i use FiveDBU and modify Structure
this work so far ... but now i have DBT for "new" File :shock:

what i´m doing wrong :?:
greeting,

Jimmy
Posts: 318
Joined: Fri Jan 14, 2022 08:37 AM
Re: FiveDBU : FPT -> DBT
Posted: Fri Oct 06, 2023 12:30 PM
Perhaps,
Code (fw): Select all Collapse
  REQUEST DBFNTX, DBFDBT
  DBCREATE( datei, field_list, "DBFNTX" )
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: FiveDBU : FPT -> DBT
Posted: Fri Oct 06, 2023 12:32 PM

You did set your preferences correct I suppose ?

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: FiveDBU : FPT -> DBT
Posted: Sat Oct 07, 2023 04:01 PM
Jimmy wrote:hi,

i have create DBF with Fivewin
Code (fw): Select all Collapse
   DBCREATE( datei, field_list, "DBFCDX" )
Code (fw): Select all Collapse
so i got FPT as Extension

while i have forgot a FIELD i use FiveDBU and modify Structure
this work so far ... but now i have DBT for "new" File :shock:

what i´m doing wrong :?:
Code (fw): Select all Collapse
This is due to a bug in the fivedbu.prg.
You can fix it with a small change:

Please see this code at line no.3679
Code (fw): Select all Collapse
          DbCreate( AllTrim( cDbfName ), aFields ),), oDlg:End(),;
Replace this line with this modified code:
Code (fw): Select all Collapse
          DbCreate( AllTrim( cDbfName ), aFields, If( Empty( cAlias ),,(cAlias)->(RDDNAME()) ) ),), oDlg:End(),;
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: FiveDBU : FPT -> DBT
Posted: Tue Oct 10, 2023 02:32 PM

hi,

Ok, thx

greeting,

Jimmy

Continue the discussion