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,178 of 9,834   
   Jim Moseley to All   
   Re: Cannot post record out of range   
   29 Apr 08 00:12:25   
   
   From: jmose@mapson.attglobal.net   
      
   bheavilin,   
      
   >I cannot reproduce the success if I start with a new copy of the   
   >form that produces the error message.  The only change in the form that   
   I can   
   >see is a postrecord command on change in value of one of the header fields.   
      
   Are you manually comparing the code, or programatically?  I run the CSDiff   
   utility on my code (broken out by individual method) to see exactly what   
   changed.   
      
   My bet is that you're forgetting the 'doDefault' in the ChangeValue() method.   
    You want to PostRecord() after changing the value (hence after doDefault).   
      
      
   Note that there might be other (or better) ways of doing this.  You could   
   use the Arrive() method of the child tableframe to trigger the PostRecord(),   
   for example.  Also, make sure you check the result of the PostRecord() &   
   don't just assume it happens correctly.   
      
      
   >With all that said, each form when it is opened starts out displaying a   
   >different record.  I do not see where in the form definition that record   
   Id   
   >is stored or how to change it.  Could you explain where I can see or change   
   >that information?   
      
   You might have saved each form with a different filter.  Click on the funnel   
   icon & see if any unexpected values are set.  Also, make sure all forms use   
   the same index on the 'master' table.  Otherwise, the default record that   
   a form should open with is the first row of the master table's current index.   
    Note that I've spent lots of time trying to disable this default behavior,   
   since I want the form to open on the row the user has requested (through   
   some other function).   
      
   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