Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

 
on.old.occ()
By patvdv at 26 Feb 2008 - 21:57


on.old.occ()

Syntax

void on.old.occ( function_name [, ...] )

Description

This executes the specified function for the current occurrence, using the old values of the record. The record must have been previously modified.

Arguments

function_name

The name of the function that must be executed. The function must be of type void.

...

Use these optional arguments to pass one or more arguments to the specified function. Use commas (,) to separate the arguments.

Note

In DAL scripts, with.old.object.values.do()with.old.object.values.do is the equivalent of on.old.occ().

Context

4Gl library function.

You can use this function only in 4GL scripts. You can use it in the following event subsections:

before.rewrite, after.rewrite
before.write after.write (in the case of dupl.occur or global.copy)

See also

do_all_occ(), do_occ(), do_occ_without.update()

Example

 declaration:
long old_inventory

choice.cont.process:
on.choice:
do.all.occ( update_occurrences, 9999 )

main.table.io:
before.rewrite:
on.old.occ( get_old_inventory )
pctst999.change = pctst999.item - old_inventory

functions:

function void update_occurrences( long new_val )
{
pctst999.special = new_val
}

Related topics

0
No votes yet


All times are GMT +2. The time now is 14:52.


©2001-2018 - Baanboard.com - Baanforums.com