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,442 of 9,834   
   Jim Giner to Jim Hargan   
   Re: changevalue not triggering with tabl   
   22 Aug 08 16:04:06   
   
   From: jim.giner@suny.edu   
      
   Yes - what Jim says is very true - one of the most amazingly 'wrong' things   
   that pdox developers did a long, long time ago was to void the alias concept   
   when it came to table lookups.  So off-target in their grand scheme of   
   things.   
      
   "Jim Hargan"  wrote in message   
   news:1c71ox628zitr$.g7iiiut2cx4m.dlg@40tude.net...   
   > Another way to approach this is to call a dialog form you design yourself,   
   > rather than use the built-in lookup. You've already discovered one reason   
   > to do this. Here's another, even better, reason: the path to the lookup   
   > table is hard-coded in the table structure. If you ever change a directory   
   > or drive, your table won't open. In Version 8, I've had this cause table   
   > corruption and had to restore from a backup. (In later versions, moving   
   > everything to the old locations worked, but not V8.)   
   >   
   > --   
   > Jim Hargan   
   >   
   > -   
   > On Fri, 22 Aug 2008 11:29:17 -0500, Ryan Lindsey wrote:   
   >   
   >> I am currently using Paradox 8.   
   >>   
   >> I have a status field. Users can change this status via a table lookup   
   >> (ctrl+space).   
   >>   
   >> My problem is that I want to add a log each time it's changed. My choice   
   >> was   
   >> to put the code into the changeValue event but it seems the event does   
   >> not   
   >> even get triggered when changing the value via ctrl+space. It will get   
   >> triggered if I actually type in the new status as long as I type   
   >> something   
   >> that's in the lookup.   
   >>   
   >> Am I just completely missing something? changevalue code is below but it   
   >> is   
   >> never executed upon changing the field via the lookup.   
   >>   
   >> method changeValue(var eventInfo ValueEvent)   
   >> var   
   >>     strOldValue,   
   >>     strNewValue    String   
   >> endVar   
   >>   
   >> strOldValue = self   
   >> doDefault   
   >> strNewValue = self   
   >>   
   >> AddLog("Status changed from " + strOldValue + " to " + strNewValue)   
   >>   
   >> endMethod   
      
   --- 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