Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modify a value in a grid with Allowactivecell = .F
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01563528
Message ID:
01564996
Views:
45
sergey,


i understand now...


when you lock a grid , the nummer of the column are negatif.

for each grid i must now determine the new properties ncola
 **** IF lnRelCol = 1		&& column #1
    * this.ncola doit contenir la valeur booléenne. ( check1 )
    IF INLIST( lnRelCol , THIS.ncola )
for total ( for not move the record of the view )
 CASE lcAction = "S"
   *!*	   lnCurRecNo = RECNO()
   *!*	   CALCULATE CNT() TO .nChosenRows IN .RECORDSOURCE FOR EVALUATE(.Column1.Check1.CONTROLSOURCE)
   *!*	   GO MIN(lnCurRecNo, RECCOUNT())


   *!*	   .setAvailableCount()
     m.nValue = 'lselect = .T. '

   SELECT COUNT( RECNO() ) AS lnCnt , SUM( ICASE( EVALUATE( m.nValue )  , +1 , 0 )) AS test ;
    FROM ( .RECORDSOURCE ) WITH ( BUFFERING = .T. ) ;
    WHERE !DELETED() INTO CURSOR temp

   .nChosenRows = temp.test

   .nAvailableRows = temp.lnCnt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform