Search found 86 matches: dbstruct

Return to advanced search

DBF editor

Hello friends, I am currently working on a DBF editor that can be used for both Fivewin and mod harbour. A dbStruct() reads the database structure and then a dialog is automatically generated. On the right, there is an area where you can drag and drop the input fields and sort ...
by Otto
Tue Feb 20, 2024 4:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF editor
Replies: 2
Views: 235

Re: DBF to Excel Sheet, without Excel, using ADO ?

... got "wrong Structure" https://i.postimg.cc/C5k5xXC8/fail-open-empty.jpg --- so i try to create Structure of Table, using DbStruct(), but go next Error about Structure of Excel Table   cQuery := "CREATE TABLE " + cTable + " ( "   iMax := LEN( aDbfStruct ...
by Jimmy
Wed Aug 09, 2023 2:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to Excel Sheet, without Excel, using ADO ?
Replies: 50
Views: 2584

Re: "id" for PRIMARY KEY ?

... primary field. Programmer can choose different field names. FWH functions allow specifying the structure of a table using a structure like DBSTRUCT(). FWH creates the required SQL for creating the table using the structure internally and creates the table. Using FWH functions for creating ...
by nageswaragunupudi
Sun Jul 23, 2023 11:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: "id" for PRIMARY KEY ?
Replies: 9
Views: 479

Re: Cantidad de Campos de un DBF

Me respondo, una forma que encontre es:

use customer
aCols := dbstruct()

? LEN( aCols ) // # de columnas del DBF

Si algo mejor, me cuentan por favor.
by carito
Sat May 20, 2023 5:28 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cantidad de Campos de un DBF
Replies: 5
Views: 463

Re: XBROWSE FIELDS with Name in Array

hi,
nageswaragunupudi wrote:Comma delimited
Eg: "FIRST,CITY,SALARY,..."

thx for Answer

nageswaragunupudi wrote:We can easily convert an array like DbStruct() to list like this:
FW_ArrayAsList( ArrTranspose( aStruct )[ 1 ] )

ah, that is nice :)
by Jimmy
Tue May 02, 2023 3:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

Re: XBROWSE FIELDS with Name in Array

how does"cFieldList" look like and what Delimiter is used :?:


Comma delimited
Eg: "FIRST,CITY,SALARY,..."

We can easily convert an array like DbStruct() to list like this:
FW_ArrayAsList( ArrTranspose( aStruct )[ 1 ] )
by nageswaragunupudi
Tue May 02, 2023 3:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

Re: XBROWSE FIELDS with Name in Array

hi,
nageswaragunupudi wrote:
Code: Select all  Expand view
METHOD EditSource( lNew, cFieldList, lNavigate, aInitVals )

ah, ok thx for Answer

how does"cFieldList" look like and what Delimiter is used :?:

would be nice if it also accept a Array with (reduce) Structure of DbStruct()
by Jimmy
Sun Apr 30, 2023 9:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

Re: XBROWSE FIELDS with Name in Array

Interesting use of DBSTRUCT()   USE CUSTOMER   aCols := ArrTranspose( DBSTRUCT() )[ 1 ]   aCols := AShuffle( aCols, 2, 9 )   DEFINE WINDOW oWnd   @ 0,0 XBROWSE ...
by nageswaragunupudi
Sat Apr 29, 2023 3:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

Re: XBROWSE FIELDS with Name in Array

... and specify the column names. Use the clause AUTOCOLS instead of COLUMNS .... clause. When we use AUTOCOLS clause, XBrowse itself reads the DBSTRUCT() and builds all the columns suitably, including the sort orders. Example: [code]@ r,c XBROWSE oBrw SIZE w,h PIXEL OF oDlg ;DATASOURCE ...
by nageswaragunupudi
Sat Apr 29, 2023 2:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

XBROWSE FIELDS with Name in Array

hi, i want to "pick" Name of FIELD from DBSTRUCT() an use it with XBROWSE now i have Names of FIELD in Array but how to pass it to XBROWSE :?: 90, 10 XBROWSE oBrw1 FIELDS One->First, One->Last ; this Style need to "know" ...
by Jimmy
Thu Apr 27, 2023 9:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE FIELDS with Name in Array
Replies: 12
Views: 789

XBROWSE : "Edit" only for Colume 3 and 4

hi,

i have a XBROWSE using DbStruct() Array
i use oBrw:nEditTypes := EDIT_GET

but i only want to "edit" LEN and DEC of Structure
so how can i "block" Column 1 and 2 in XBROWSE :?:
by Jimmy
Mon Apr 03, 2023 3:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE : "Edit" only for Colume 3 and 4
Replies: 2
Views: 247

Re: TOleAuto () versus FW_ExcelToDBF()

... ) I can do this... looking for more samples at the moment..... I found small samples like this, but they look more complex... We will see AEval( DbStruct(), { |a| cFieldList += "," + if(a[2]= "C","Alltrim("+a[ 1 ]+")",a[ 1 ]) } )
by Marc Venken
Thu Jun 03, 2021 1:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TOleAuto () versus FW_ExcelToDBF()
Replies: 10
Views: 968

field flags in dbCreate()/dbStruct()

... 2015-02-08 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) // * src/rdd/workarea.c // + added support for field flags in dbCreate()/dbStruct(). // Flags can be passed in string with field type after ":", i.e. // "C:U" // means Unicode character field. // The following ...
by Antonio Linares
Sat May 01, 2021 12:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: field flags in dbCreate()/dbStruct()
Replies: 0
Views: 298

Re: funcion FW_CdxCreate() (SOLUCIONADO)

... caFields, aValues, [nLockWaitSecs], [lAppend] ) --> nRecNo ( 0 if failure) ... 2)FW_CdxCreate( [caTagList] ) 3)FW_DBFSTRUCT( cDbfFile ) --> dbstruct() // without USEing the DBF FWH1709: * function FW_CdxCreate( [caTagList], [lMemory] ). Added new optional parameter lMemory to create indexes ...
by nageswaragunupudi
Tue Apr 13, 2021 12:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funcion FW_CdxCreate() (SOLUCIONADO)
Replies: 4
Views: 572

problemas al linkear

Hola. usando harbour y Fwh la ultima. Me arroja estos errores: [1]:iLink32.Exe -Gn -q -aa -Tpe -x @testMaria.bcl Error: Unresolved external 'WinMain' referenced from X:\HARB\BCC7\LIB\C0W32.OBJ Error: Unresolved external '_hb_vmProcessSymbols' referenced from X:\PROYECTOS\TEST\MARIA\OBJ\MARIA.OBJ Err...
by goosfancito
Thu Feb 04, 2021 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: problemas al linkear
Replies: 6
Views: 442
Next

Return to advanced search