see function
Global functions have a form wide scope while function only exists in the script.
Functions can be declared inside Global Functions.
All events declared as global function
Syntax:
global function myFunc
// Script
end global
Call:
myFunc()
Example: Event "before retrieve"
global funktion checkitem
sqlca.select count(*) from oitm where itemcode=<dw_1.item.itemcode.value,dbstring>
if <sqlca.result.1> n<= 0 then
displaymessage()
end if
funktion displaymessage
meldung=error$Item not found
end function
end global