Hi, all,
 
I have a main table (say, Customers) and a linked subtable (say, Orders) on  
a form.  The subtable is displayed in a DBGrid.
 
When the user enters a value in the column Quantity of the  DBGrid, I want to 
be able to calculate the TotalPrice column in the DBGrid  through code in an 
OnExit DB Grid Column EEP.  For example, when I exit the  Quantity column, if 
the Quantity is less than 100, then the price per item is  $5.00; if the 
Quantity is >= 100 and < 500, the price per item is $4.50;  if the Quantity >= 
500, 
then the price per item is $4.00.  I then  compute the TotalPrice and want to 
pop that value in the column  TotalPrice.
 
(This is not what I am really doing; I have a different application where  
based on the contents of one column, I do a lookup into a table using that  
column and want to copy the resulting value into another column of the DB  
Grid.)
 
Any ideas?  I am a newbie to R:BASE Turbo V-8; the last version I  worked 
with was 6.5++.  Thank you in advance.
 
Thanks,
Diane DeMers
 



**************Looking for simple solutions to your real-life financial 
challenges?  Check out WalletPop for the latest news and information, tips and 
calculators.      (http://www.walletpop.com/?NCID=emlcntuswall00000001)

Reply via email to