Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,109 of 9,834    |
|    Craig to All    |
|    Why doesn't this work    |
|    29 Jan 07 13:03:08    |
   
   From: craig.futterman@nospam.comcast.net   
      
   P10 WinXP   
   An indexed table with 3 fields. The 3rd field is a checkbox field which has   
   a "Y" when checked.   
   The table is presented as a tableframe on a form/   
   The user clicks on the fields he wants included. I need to count the # of   
   records to be used   
      
   siCount = 0;// set counter   
   TC2.edit()   
   If not TC2.lockRecord() then   
    errorshow()   
    ENDIF   
   If not TC2.postrecord() then   
    errorshow("Could not post TC2 record")   
    return   
   ENDIF   
      
      
    Scan TC2 for TC2."Checkbox" = "Y":   
    msginfo(TC2."ClinicalCode",TC2."CheckBox")   
    siCount = siCount +1   
   ENDSCAN   
      
   The reason for the lockrecord is because it wouldn't postrecord() because   
   the record was not locked.   
   It always skips the last checkbox. Why?   
      
   Thanks in advance   
      
   Craig   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca