Search found 107 matches: afields

Return to advanced search

JSON2DBF adapter

... for us? I think it would be practical to have a function to fill JSON data into a DBF file in the following manner: json2dbf(dbfFile, jsonData, {aFields}) However, perhaps such a function already exists and I am just not aware of it. ----------------------------------------------------------------------------------------------------- ...
by Otto
Mon Jan 29, 2024 8:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: JSON2DBF adapter
Replies: 3
Views: 505

Re: Calculate total pages

... , , ; { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) } ) static function MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,afields ) local cFooter := "Progetto Magazzino - " local cTitle1 := "title row 1" local cTitle2 := "title row 2" local ...
by Silvio.Falconi
Tue Nov 28, 2023 8:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate total pages
Replies: 32
Views: 5878

Re: Función con xbrowse y xedit

... oRs:= oCn:Rowset( aSql, .t. ) oRs es el rowset resultante. en el método dblblick del browse ejecuto el FW_Record así ON DBLCLICK MyXedit( oRs, aFields, aHeaders ) esta es la función: FUNCTION MyXEdit( oRs, aFields, aHeaders )     LOCAL aFieldsHeaders:={}     FOR i = 1 to Len( ...
by jose_murugosa
Mon Jul 10, 2023 5:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Función con xbrowse y xedit
Replies: 5
Views: 366

Re: Función con xbrowse y xedit

... que el problema era el haberle mandado un array, opté por hacer al revés. Dejé la cláusula autocol, limité las columnas en el query, y suprimí afields, dejando a headers. Con esto el resultado fué el esperado. Muchas gracias por tu ayuda. Lo que no he resuelto ahora, es que el xedit que se ...
by jose_murugosa
Mon Jul 10, 2023 12:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Función con xbrowse y xedit
Replies: 5
Views: 366

Función con xbrowse y xedit

... aSql, 'SELECT id, descripcion, idcategoria, sector, ordenlinea FROM puestos AS p ORDER BY id' )//Campos y cabezales para el xbrowseaAdd( aFields,  { 'id', 'descripcion', 'idcategoria', 'sector', 'ordenlinea' } )aAdd( aHeaders, { 'Id', 'Descripción', 'Id.Categoría', ...
by jose_murugosa
Thu Jul 06, 2023 4:11 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Función con xbrowse y xedit
Replies: 5
Views: 366

Number Total Pages

... Str( Len( oRep:oDevice:oDevice:aMeta ) ) ) but not run oBrw:Report( cTitle, , , ; { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aFields ) }) function MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,afields ) local nTotalpages:=0 // LTrim( Str( Len( oRep:oDevice:oDevice:aMeta ) ...
by Silvio.Falconi
Fri Jun 23, 2023 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Number Total Pages
Replies: 2
Views: 260

Re: Group on Report ( from xbrowse)

Dear Silvio, > AAdd(oRep:aGroups,trGroup():New({||"oDbf:"+(afields[nGroup])},{||""},{||"Total"},{|| 1 },.t.,oRep)) AAdd(oRep:aGroups,trGroup():New( &( "{||oDbf:" + (afields[nGroup])}" ),{||""},{||"Total"},{|| ...
by Silvio.Falconi
Fri May 05, 2023 12:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Group on Report ( from xbrowse)
Replies: 4
Views: 243

Re: Group on Report ( from xbrowse)

Dear Silvio,

> AAdd(oRep:aGroups,trGroup():New({||"oDbf:"+(afields[nGroup])},{||""},{||"Total"},{|| 1 },.t.,oRep))

AAdd(oRep:aGroups,trGroup():New( &( "{||oDbf:" + (afields[nGroup])}" ),{||""},{||"Total"},{|| 1 },.t.,oRep))
by Antonio Linares
Fri May 05, 2023 10:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Group on Report ( from xbrowse)
Replies: 4
Views: 243

Re: Equivalencias de __objAddData y __objSendMsg en Hash

... asigno valores de forma dinámica, desde un cursor SQL bien sea TODBC o EAGLE creo los campos mediante METHOD InitFields() CLASS Ttable AEVAL(::aFields,{|a,n| __objAddData( Self, a[1] , CTOEMPTY(NIL,a[2],a[3] ) ) }) Ahora los campos me devuelve valores NIL
by jnavas
Fri Mar 17, 2023 3:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Equivalencias de __objAddData y __objSendMsg en Hash
Replies: 4
Views: 474

Re: chatGPT writes and executes Harbour code !!!

... perfect. She started by using the ALIAS keyword to assign a new name to the database table containing her family's gift list. Next, she used the AFIELDS keyword to retrieve the names of the fields in the table and the ADEL keyword to delete any unnecessary information. Using the ASORT keyword, ...
by Jimmy
Mon Dec 26, 2022 8:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chatGPT writes and executes Harbour code !!!
Replies: 35
Views: 2787

Re: Xbrowse complex export to dbf challenge...

... see. I found a link to the Harbour functions, but failt to make a array with all the possible fieldnames and data. As you see, the building of the aFields is not working. What is needed for this ? Maybe the approich is also not optimal... #include "FiveWin.ch"Function Main()  ...
by Marc Venken
Sun Oct 31, 2021 12:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse complex export to dbf challenge...
Replies: 4
Views: 587

Re: FW_ExceltoDbf version in FW 2102

... output to 'tester.ppo'... 6 errors No code generated. tester.prg(65) Error E0019 #error 'Invalid instance variable name <->(aSort(AFIELDS(aFieldNames)))>' tester.prg(65) Error E0030 Syntax error "syntax error at '->'" tester.prg(65) Warning W0001 Ambiguous reference ...
by Marc Venken
Mon Mar 29, 2021 7:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_ExceltoDbf version in FW 2102
Replies: 19
Views: 2571

Re: Import/Export from/to CSV files (; separator)

Correct function Builddbf(aHeader,Alengte,cDbf,cdeli) local aStru := {} local aFields := HB_ATokens(aHeader[1], cdeli ) for i = 1 to len(aFields) cField = (aFields[i]) aAdd( aStru, { cField , "C", 255 , 0 } ) // I insert 255 is the max lenght next dbCreate( ...
by Silvio.Falconi
Wed Nov 25, 2020 7:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import/Export from/to CSV files (; separator)
Replies: 16
Views: 2174

Re: fieldWBlock

... ) }" ) If you don't eval the block you'll not retrieve the content of the field. @ nRiga, nColonna PRINT TO oPrn TEXT eval( FIELDWBLOCK( aFields[ncampo], SELECT( "CUST" ) ) ); SIZE nWid, nHei CM ALIGN "T" FONT oFnt I tried with eval make error
by Silvio.Falconi
Wed Nov 18, 2020 6:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: fieldWBlock
Replies: 13
Views: 1208

Re: fieldWBlock

... ) }" ) If you don't eval the block you'll not retrieve the content of the field. @ nRiga, nColonna PRINT TO oPrn TEXT eval( FIELDWBLOCK( aFields[ncampo], SELECT( "CUST" ) ) ); SIZE nWid, nHei CM ALIGN "T" FONT oFnt
by ADutheil
Wed Nov 18, 2020 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: fieldWBlock
Replies: 13
Views: 1208
Next

Return to advanced search

cron