home bbs files messages ]

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,575 of 9,834   
   Tony McGuire to Jim Hargan   
   Re: dataInsertRecord not Insertin'...?   
   09 Jan 09 13:32:17   
   
   From: png.paradoxcommunity@com   
      
   Jim Hargan wrote:   
   > On Fri, 9 Jan 2009 13:02:57 -0500, Jim Giner wrote:   
   >   
   >> Actually, Tony referred to the edit() statement, not the endedit.  What   
   >> exactly does an Edit() statement do without an associated object?  I'm used   
   >> to saying myTc.edit() or something like that so I know what exactly is going   
   >> into edit mode.   
   >   
   > Edit() without an associated object becomes a uiObject method, and (like   
   > all such 'bare' uiObject methods) is interpreted as self.Edit().   
   >   
   > That is -- as far as I can figure out. Bare uiObject methods confused the   
   > heck out of me for many years, and this interpretation seems to work   
   > consistently.   
   >   
   > FWIW,   
   >   
   > --   
   > Jim Hargan   
      
   You can get away with edit() in an object on a form; it puts the underlying   
   table into edit mode.   
      
   But since he does all this stuff without necessarily putting the form into   
   edit mode, or testing whether it is in edit mode, the FIRST time through you   
   won't necessarily get a record added to work on.   
      
   But then, since the endedit() was associated with the tcursor and not the form   
   or its underlying table, NOW the form/table is in edit mode and thus it all   
   works.   
      
   At the start of the form, page open usually, I ALWAYS have   
   if not isedit() then   
   edit()   
   endif   
      
   if I or a user will be doing any work on the form entailing editing the   
   underlying table(s).   
      
      
      
   ---------------   
   Tony McGuire   
      
   --- 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