Initially a test line in the browse consists of a single example line
WITH OBJECT oBrw
IF lmore
:nDataLines := 2
ELSE
:nDataLines := 1
ENDIF
...
END

the user by a menu popup can change the configuration and set more rows
on command of menu I made
Why not refresh the oBrw ?
WITH OBJECT oBrw
IF lmore
:nDataLines := 2
ELSE
:nDataLines := 1
ENDIF
...
END
:bStrData := { || oDbf:Street + CRLF +oDbf:city+" "+ oDbf:state }
the user by a menu popup can change the configuration and set more rows
on command of menu I made
Function oBtnMenu2(oBrw,oDbf,oParent,cSection,nRow,nCol)
local oMenu,oItem1
MENU oMenu POPUP
MENUITEM oItem1 PROMPT "More Rows" ;
ACTION (lMore := !lMore,;
( IIF( lMore,oBrw:nDataLines := 2,oBrw:nDataLines := 1 ),;
oBrw:refresh()) )
ENDMENU
oItem1:SetCheck(lMore)
ACTIVATE POPUP oMenu OF oParent AT oBrw:nTop+nRow, oBrw:nLeft+nCol
return nilSince from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

