Search found 85 matches: astruct

Return to advanced search

Re: xBrowse - Dates - FWH 2310

... XBrowse builds the picture from that column's cDataType, nDataLen and nDataDec. In turn, XBrowse takes this informatin from ::oOrders:aStruct. It appears that XBrowse is reading the structure of the field 'wrkdat' from ::oorders as { "WRKDAT", "N", 6, 0 }. Surprising. ...
by nageswaragunupudi
Tue Nov 07, 2023 5:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse - Dates - FWH 2310
Replies: 19
Views: 1448

Re: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()

... FWAdoStruct(objRS) work only on "active" Record :?: Please post a DBF Structure here so that we both work on the same structure Local aStruct := {                        ;   { "TEST_C"      ,"C" ,        10,         0 } ,;   { "TEST_N" ...
by Jimmy
Mon Aug 14, 2023 3:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO / Excel / XBROWSE / FWAdoStruct() / Edit()
Replies: 8
Views: 261

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

...  End try --- than i open a existing *.XLSx and look at Structure   objRS := FW_OpenADOExcelSheet( cPathcFile, cSheet, cRange, lHeaders )   aStruct := FWAdoStruct( objRS )fwlog var2char(aStruct) and got var2char(aStruct) = "{{ARTNR, C, 255, 0, 202, .T.}, {ARTIKEL, C, ...
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: 2578

Re: METHOD SavePQQ() need "id" or how to use own PRIMARY KEY ?

hi, i have used from c:\fwh\source\function\pgsuport.prg function GetSerialCol( oQry, aStruct ) to get PRIMARY KEY and change to   cSeq := GetSerialCol( oQry, ::aStructPG )   n := ASCAN(::aStructPG,{|x| x[1] = cSeq } )   IF n > ...
by Jimmy
Thu Aug 03, 2023 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: METHOD SavePQQ() need "id" or how to use own PRIMARY KEY ?
Replies: 21
Views: 718

Re: METHOD SavePQQ() need "id" or how to use own PRIMARY KEY ?

... i found in c:\fwh\source\function\pgsuport.prg function FWPG_PrimaryKeys( oQry, cTable ) or #ifdef UNUSEDFUNCS static function GetSerialCol( oQry, aStruct ) it would be nice if METHOD SavePQQ() use these Function for WHERE
by Jimmy
Wed Aug 02, 2023 11:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: METHOD SavePQQ() need "id" or how to use own PRIMARY KEY ?
Replies: 21
Views: 718

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: datatype

METHOD FieldType( n, c ) INLINE If( c == nil, ::aStruct[ n ][ 2 ], ::aStruct[ n ][ 2 ] := c )
by James Bott
Tue Feb 15, 2022 3:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: datatype
Replies: 1
Views: 303

Re: Procedimientos Almacenados (Store Procedure) Error

... return array For now, glad this works. This is a multi-dim array of the same data. Check xbrowse oProd and make sure. Immediately after that, run aStruct := oCn:Execute()   again without any parameters. Very likely you will get aStructure as an array Check "xbrowser aStruct" ...
by nageswaragunupudi
Sun Feb 13, 2022 8:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Procedimientos Almacenados (Store Procedure) Error
Replies: 8
Views: 1112

Re: FWH : Built-in MySql/MariaDB functionality

... "+" as field type. Before or without actually creating table, you can check the table creation sql by ? oCn:CreateTableSQL( cTableName, aStruct ) Example:   aStru :=  { ;               { "codgru",    "+",  3, 0 }, ; // '+' : AutoInc Primary Key      ...
by goosfancito
Tue Sep 28, 2021 8:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Replies: 76
Views: 28422

FW_ExcelToDBF to be extended (enhanced)

... in order to match these of the dbf. The dbf fields are defined, but the exels that I get are always differend than the dbf. The sollution maybe : aStruct := {} DBF EXEL COLUMN AADD(aStruct, { "Code" , "art_nummer"}) // link to Code AADD(aStruct, { "Code" , "art_code"}) ...
by Marc Venken
Mon Feb 08, 2021 3:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_ExcelToDBF to be extended (enhanced)
Replies: 5
Views: 822

Re: Imprimir imagen guardada en tabla SQL

... )  Instead of writing SQL statements for creation of tables on our own, we recommend using FWH function FWAdoCreateTable( cTable, aStruct, oCn, [lAddAutoInc := .t.] )  aStruct is a normal DBF style structure array we are all very familiar with. Data type "M" ...
by nageswaragunupudi
Fri Dec 25, 2020 4:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir imagen guardada en tabla SQL
Replies: 11
Views: 2452

Re: New FTDN June 2020 (FWH 20.06)

... se abre en modo exclusivo. Es necesario cerrar el objeto de conexión poco después de su uso. * FWMariaConnection: Los métodos CreateTable( cTable, aStruct, ... ) y CreateTableSQL( cTable, aStruct, ... ) están modificando la matriz aStruct. Sin embargo, los métodos se ejecutan correctamente, el ...
by Antonio Linares
Sat Jul 11, 2020 5:26 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN June 2020 (FWH 20.06)
Replies: 1
Views: 1340

New FTDN June 2020 (FWH 20.06)

... is opened in exclusive mode. It is necessary to close the connection object soon after use. * FWMariaConnection: The methods CreateTable( cTable, aStruct, ... ) and CreateTableSQL( cTable, aStruct,... ) are modifying the array aStruct. Though, the methods execute correctly, using the modified ...
by Antonio Linares
Thu Jul 09, 2020 9:37 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN June 2020 (FWH 20.06)
Replies: 1
Views: 1340

Re: xBrowse anomoly

... field with fieldlength 8 and fielddec 2. But this field is a character field. When TDatabase class opens a DBF, it copies DBSTRUCT() to oDbf:aStruct, extends the array and after examining each field stores (a) picture clause for numeric fields (only) in column 7, (b) index tag corresponding ...
by nageswaragunupudi
Fri May 01, 2020 3:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse anomoly
Replies: 21
Views: 3545
Next

Return to advanced search