I have looked at the multi-line select option in the sample TestxBrw.prg and I see where you add the line .. oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS
- Code: Select all Expand view
STATIC FUNCTION MultiSelect( oWnd )
local oChild, oBrw
DEFINE WINDOW oChild TITLE "MultiSelect browse" MDICHILD OF oWnd
oBrw := TXBrowse():New( oWnd )
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWMS
oBrw:SetRDD()
oBrw:CreateFromCode()
oChild:oClient := oBrw
ACTIVATE WINDOW oChild ON INIT oBrw:SetFocus()
RETURN NIL
What I would like to be able to do is trap those multiple rows and on a button click run those hi-lited rows through a program that imports them ( like a do while loop ) ..
The button click has a single action line program ( _transfer() )I would like to run for as many rows that are selected.
Here is a screen shot of what I am trying to do..
then on the transfer button click be able to cycle through this code multiple times
- Code: Select all Expand view
REDEFINE BTNBMP oBtn2 ID 161 PROMPT "Transfer" CENTER ;
of oInvt 2007 ;
ACTION ( _Transfer( oRsInvt,oWnd,oLbxMain,oRsInvDetail,;
oWndChildD,oRsInv,@lTaxable,oTaxable,oFontB,oFontBig,nRepairNumber,;
oLabor,oParts,oMisc,oTax,oTotal,nAssignedTo,cLoc,nTaxNumber,;
oOther,oSubtotal))
Any help and advice would be appreciated!
Rick Lipkin