March 2020
Intermediate to advanced
534 pages
14h 15m
English
There are two new topics here: an event where the super can be canceled and the lookup code. We just know that FormControlEventArgs can be cast to FormControlCancelableSuperEventArgs. If it isn't, we will get an error at run-time.
We have made three assumptions, which we could test for and throw an exception at runtime:
We could make the code more robust by considering the following:
if (sender.dataSourceObject() != null)
if (sender.dataSourceObject().cursor().tableId == tableNum(SalesLine)) ...
Read now
Unlock full access