Manuel Mercado - Obter a coluna atual TSBROWSE

Manuel Mercado - Obter a coluna atual TSBROWSE

Postby MGA » Sat Mar 15, 2008 2:43 pm

Maestro, tenho em um BROWSE cerca de 30 colunas

REDEFINE BROWSE oBrw CELLED ALIAS "SAIPRO" ID 46 OF oDlg

....
....

//coluna 17
ADD COLUMN TO oBrw TITLE "ST" DATA FieldWBlock("subtri",select()) SIZE 30 EDITABLE 3DLOOK FALSE, TRUE, TRUE ALIGN DT_CENTER, DT_CENTER, DT_CENTER PICTURE "!";
COLORS CLR_BLACK, bColor MOVE DT_MOVE_NEXT;
VALID {|uVar| TSvalidaSub803(uVar,obrw,cTrabProdSub)};
WHEN IF(!EMPTY(saipro->codpro),.T.,.F.)



***************************************************
static function TSvalidaSub803(ubuffer,obrw,cTrabProdSub)
***************************************************
? obrw:ncolposr() //me retorna 2 mais estou na 17
RETURN(.T.)


Image

Maestro, não estou conseguindo o numero da coluna real em que estou, como posso resolver?


Muito obrigado!
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: Manuel Mercado - Obter a coluna atual TSBROWSE

Postby mmercado » Sat Mar 15, 2008 4:35 pm

Hola José:
SGS wrote: ? obrw:ncolposr() //me retorna 2 mais estou na 17

oBrw:nColPos te devuelve la posición relativa dentro de las columnas visibles, para lo que tú necesitas usa:
?oBrw:nCell

Saludos

Manuel Mercado
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Postby MGA » Sat Mar 15, 2008 5:49 pm

grato Maestro!
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Postby MGA » Sat Mar 15, 2008 5:50 pm

Obrigado Maestro!
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1252
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 49 guests