Hola foro,
Como logro agregar una columna en tiempo de ejecucion a mi xbrowse y mantener esta columna en las siguientes ejecuciones?
Gracias de antemano
Xbrowse: Agregar columna en tiempo de ejecucion
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Xbrowse: Agregar columna en tiempo de ejecucion
Command
Please see \fwh\include\xbrowse.ch for full syntax.
OR
Code: Select all
ADD oCol TO oBrw DATA FIELD->FIRST TITLE "FirstName"
OR
Code: Select all
oCol := oBrw:AddCol()
oCol:bEditValue := { |x| If( x == nil, FIELD->FIRST, FIELD->FIRST := x ) }
oCol:cHeader := "FirstName"
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Xbrowse: Agregar columna en tiempo de ejecucion
I'm sorry Mr Rao, tahnk you for yor helpnageswaragunupudi wrote:CommandPlease see \fwh\include\xbrowse.ch for full syntax.Code: Select all
ADD oCol TO oBrw DATA FIELD->FIRST TITLE "FirstName"
ORCode: Select all
oCol := oBrw:AddCol() oCol:bEditValue := { |x| If( x == nil, FIELD->FIRST, FIELD->FIRST := x ) } oCol:cHeader := "FirstName"
I meant execution time, not design time
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Xbrowse: Agregar columna en tiempo de ejecucion
This is at execution time also.

Code: Select all
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
local oDlg, oBrw, oBtn
USE CUSTOMER NEW SHARED VIA "DBFCDX"
DEFINE DIALOG oDlg SIZE 600,400 PIXEL TRUEPIXEL
@ 50,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "FIRST", "LAST" ;
CELL LINES NOBORDER
oBrw:CreateFromCode()
@ 10,20 BUTTON oBtn PROMPT "AddCol" SIZE 80,30 PIXEL OF oDlg
oBtn:bAction := <||
ADD TO oBrw DATA CUSTOMER->CITY TITLE "CITY"
oBrw:Refresh()
return nil
>
ACTIVATE DIALOG oDlg CENTERED
return nil

Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Xbrowse: Agregar columna en tiempo de ejecucion
nageswaragunupudi wrote:This is at execution time also.
Great
But how can I save the new column in a .txt file ?
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Xbrowse: Agregar columna en tiempo de ejecucion
What do you mean by saving a "column" in text file?But how can I save the new column in a .txt file ?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India