how to use global? [message #86084] |
Sun, 29 August 2004 18:49 |
agnes
Messages: 13 Registered: February 2004
|
Junior Member |
|
|
how to use global variable?
example:
in my year_allocation form i hv
year_id,payment_(id),allocation_amount,balance_amount
so in order to get balance_amount,i have to deduct allocation_amount - payment_amount(in form payment)which is outside the year_allocation form. so how can i use formula to call the payment_amount in other form using global?
could u help me...plz..
thnks
regard from agnes
|
|
|
Re: how to use global? [message #86086 is a reply to message #86084] |
Sun, 29 August 2004 20:53 |
Sunil
Messages: 132 Registered: September 1999
|
Senior Member |
|
|
What ever value is calculated in your PAYMENT form just assign it to any global variable, e.g
:GLOBAL.PAYMENT_AMT := YOUR CALCULATED VALUE;
You don't need to declare the global Variable.
Once this is done, you can directly access it in any other form. In you case you could use,
balance_amount:= allocation_amount - :GLOBAL.PAYMENT_AMT ;
HTH
Sunil
|
|
|