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 9,100 of 9,834    |
|    Jim Moseley to All    |
|    Re: Why the delay to close()...?    |
|    06 Mar 08 15:14:08    |
   
   From: jmose@mapson.attglobal.net   
      
   Kenneth,   
      
   If your Search form has already found the row, why waste the effort of having   
   your People form locate() it again? Just attach a tcursor to your row and   
   resync the field, as in:   
      
   var   
    tc tcursor   
    ui UIObject   
   endVar   
      
   if eventInfo.vCharCode()=VK_Return then   
    disableDefault   
    setMouseshape(mouseWait)   
    If NOT people.attach("PeopleKS") then   
    People.Open("PeopleKS",winStyleDefault+winStyleHidden)   
    endif   
    ok = tc.attach(num)   
    if ok then   
    ok = ui.attach(People.num) ; or whatever your field is   
    endif   
    if ok then   
    ok = ui.resync(tc)   
    endif   
    if not ok then   
    errorShow()   
    endif   
   endif   
      
   HTH,   
   Jim Moseley   
      
   --- 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