TSBROWSE - Tipos de pictures diferente para a mesma coluna!?

TSBROWSE - Tipos de pictures diferente para a mesma coluna!?

Postby MGA » Sat Nov 01, 2008 1:56 pm

Sr. Manuel,

Tenho um browse com duas colunas, ex:

.. COL1..... COL2..................
-----------------------------------
CARTAO:_________: ->pict "9999"
VALOR_ :_________: ->pict "@E 999,999.99"
NOME__:_________: ->pict "@!"
-----------------------------------

Porém Col 2, podera assumir pictures diferentes dependendo da linha.

ADD COLUMN TO BROWSE obrw2 DATA ARRAY ELEMENT 2 ;
SIZE 400 EDITABLE;
3DLOOK TRUE,TRUE,TRUE;
ALIGN DT_LEFT MOVE DT_MOVE_NEXT ;
Preedit {|uVar| fwhisproperts(obrw2,@uVar,aCidades,aTipos)};
Postedit {|| obRW2:aColumns[2]:cPicture:="@!",fwhtestpostedit(obrw2)} ;
valid {|uVar| fwhvalcampos(uVar,obrw2,obrw3)};
when fwhtestchav(obrw2) picture "@!" <- ????



Por favor Sr. Manuel, te agradeço desde já.
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Postby Daniel Garcia-Gil » Sat Nov 01, 2008 4:22 pm

crea el array con el picture

aadd( aArray,{ "CARTAO", TRANSFORM( uValor1, "9999" ) }
aadd( aArray,{ "VALOR", TRANSFORM( uValor2, "@E 999,999.99" ) }
aadd( aArray,{ "NOME", TRANSFORM( uValor3, "@!" ) }

ADD COLUMN TO BROWSE obrw2 DATA ARRAY ELEMENT 2 ;
SIZE 400 EDITABLE;
3DLOOK TRUE,TRUE,TRUE;
ALIGN DT_LEFT MOVE DT_MOVE_NEXT ;
Preedit {|uVar| fwhisproperts(obrw2,@uVar,aCidades,aTipos)};
Postedit {|| fwhtestpostedit(obrw2)} ;
valid {|uVar| fwhvalcampos(uVar,obrw2,obrw3)};
when fwhtestchav(obrw2)
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Postby MGA » Mon Nov 03, 2008 11:16 am

OK, vou testar...

Obrigado
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests