generation – A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.
Returns:
The task code:
O – Online
B – Batch
C – Rich Client
R – Browser Client
M – Main Program
MC – Main Program from within a Rich Client program Since version: 1.9
W – Web Client Since version: 4.0
MW – Main Program from within a Web Client program Since version: 4.0
Uses:
You can have a general error handling logic unit that behaves differently if the error is raised from an Online or Batch screen.
If you have Main Program logic units that contain code for Rich Client and Online, you can have the code run depending on the caller.