Search found 28 matches: col2

Return to advanced search

Copy ARRAY filtered by column

Dear friends,

What is the most effective way to copy certain columns from an ARRAY to a new ARRAY:
eg ARRAY {"col1", "col2", "col3", "col4", "col5"}

new ARRAY {"col1", "col3", "col5"}

Best regards,
Otto
by Otto
Tue Nov 15, 2022 8:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy ARRAY filtered by column
Replies: 2
Views: 206

Re: Harbour Writer

... is selected from the optionlist the elements are shown and labeled again. .style.display = "block"; document.getElementById("col2").innerText = 'row 1'; The Copy button calls a function and depending on the selected option the source code is displayed and copied to the ...
by Otto
Wed Sep 07, 2022 6:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Harbour Writer
Replies: 14
Views: 1084

Re: Harbour Writer

... is selected from the optionlist the elements are shown and labeled again. .style.display = "block"; document.getElementById("col2").innerText = 'row 1'; The Copy button calls a function and depending on the selected option the source code is displayed and copied to the ...
by Otto
Wed Sep 07, 2022 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Harbour Writer
Replies: 2
Views: 261

Re: Editing individual lines

... #include "XBrowse.ch" function Main() local oDlg, oFld, oBrw1, oBrw2 local aDat1, aDat2 aDat1:={{"Row1-Col1","Row1-Col2","Row1-Col3"},; {"Row2-Col1","Row2-Col2","Row2-Col3"},; {"Row3-Col1","Row3-Col2","Row3-Col3"},; ...
by MGA
Wed Mar 17, 2021 11:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Editing individual lines
Replies: 2
Views: 481

Order an array

... nGiorni,; aPrices[k],; lIslock,; aListini[k][2] } ) the user found problems to modify the price and he wish see before specific strings (col2+col4) before all "Ombrellone" and sectors then all "Palma" and sectors and then all "Cabina" and sectors I made ASORT( ...
by Silvio.Falconi
Mon Feb 24, 2020 11:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Order an array
Replies: 2
Views: 532

New FTDN February/Febrero 2018 (FWH 18.02)

... now correctly recognizes initial sort order when sort clause includes aliased fields also. Example: When sql is "select fld1 as col1,fld2 as col2 from table t order by col2", initial order is recognized correctly as col2. When sql is "select fld1 as col2,fld2 as cole from table ...
by Antonio Linares
Fri Mar 09, 2018 12:01 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2018 (FWH 18.02)
Replies: 0
Views: 1338

Re: 15.10 Browse problem

... columns. Recommended sytanx is : @ r.c (or) REDEFINE XBROWSE ...... DATASOURCE <Alias/oDbf/oRs/oQry/Array> ; COLUMNS "col1", "col2", ...... In this case, XBrowse examines the field properties of the columns and decides the optimal behavior required, like datat type, data ...
by nageswaragunupudi
Thu Dec 31, 2015 3:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: 15.10 Browse problem
Replies: 27
Views: 8402

Re: TDolphin - from where I can download ?

... oQry:SetWhere( <newWhereCond> ), you can reset the filter dynamically and view the re-filtered rows. oQry:SetOrder( "<col1>,<col2>" ) works For xbrowse you can let the user sort the browse order on any column without writing any special code. Just add the clause "AUTOSORT" ...
by Rimantas
Wed Mar 06, 2013 12:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDolphin - from where I can download ?
Replies: 18
Views: 4629

Re: TDolphin - from where I can download ?

... oQry:SetWhere( <newWhereCond> ), you can reset the filter dynamically and view the re-filtered rows. oQry:SetOrder( "<col1>,<col2>" ) works For xbrowse you can let the user sort the browse order on any column without writing any special code. Just add the clause "AUTOSORT" ...
by nageswaragunupudi
Wed Mar 06, 2013 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDolphin - from where I can download ?
Replies: 18
Views: 4629

Pantalla ampliada

... Cuando muestro un tcbrowse en pantalla leo de un fichero de configuración el tamaño de cada una de las columnas que lo componen. p.e.. col1=10, col2=100, col3=200. Al finalizar el browse grabo en ese fichero de configuracion el tamaño que tienen al final, por lo que si se cambio el ancho de ...
by miarcod
Sun Jul 01, 2012 10:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pantalla ampliada
Replies: 1
Views: 580

pantalla ampliada

... Cuando muestro un tcbrowse en pantalla leo de un fichero de configuración el tamaño de cada una de las columnas que lo componen. p.e.. col1=10, col2=100, col3=200. Al finalizar el browse grabo en ese fichero de configuracion el tamaño que tienen al final, por lo que si se cambio el ancho de ...
by miarcod
Sat Jun 30, 2012 6:38 pm
 
Forum: FiveWin para CA-Clipper
Topic: pantalla ampliada
Replies: 1
Views: 1394

Re: 10.3 xBrowse date display error

Rao, If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>, Can you explain in more detail about using the OBJECT clause, perhaps by providing an example. I am particularly wondering about how you ...
by nageswaragunupudi
Wed Mar 31, 2010 7:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 10.3 xBrowse date display error
Replies: 14
Views: 4608

Re: 10.3 xBrowse date display error

Rao, If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>, Can you explain in more detail about using the OBJECT clause, perhaps by providing an example. I am particularly wondering about how you ...
by James Bott
Wed Mar 31, 2010 5:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 10.3 xBrowse date display error
Replies: 14
Views: 4608

Re: 10.3 xBrowse date display error

... of place to mention a few hints to take the best advantage of XBrowse's built-in capabilities. If we use the syntax, XBROWSE .... COLUMNS 'col1', 'col2' ... ALIAS <calias> or OBJECT <dataobj>, XBrowse extracts the exact information about the datatype, datalen and datadec from the DbStruct() ...
by nageswaragunupudi
Wed Mar 31, 2010 3:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 10.3 xBrowse date display error
Replies: 14
Views: 4608

Re: xBrowse Back colour of a column based on the column value.

Please see the following sample code:   @ 0,0 XBROWSE oBrw OF oWnd ;      COLUMNS 'col1', 'col2' ;      RECORDSET oRs CELL FOOTERS   oBrw:Col2:bClrStd := { || If( oBrw:Col2:Value > n, { CLR_BLACK, CLR_WHITE }, { CLR_WHITE,CLR_RED } ) ...
by nageswaragunupudi
Mon Jan 11, 2010 12:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse Back colour of a column based on the column value.
Replies: 9
Views: 2755
Next

Return to advanced search