How it works...

The Variant Façade pattern allows you to define a single point of entry to a function or a set of functions. Using this pattern allows you to pass any type of record into a function as opposed to having to create a function to handle each type.

This pattern works by passing along a combination of Variant and RecordRef parameters between the functions. This allows for the function signatures to remain completely generic so that you don't need to maintain multiple versions of the same function.

Using this pattern is another way that you can ensure your application is extensible by other developers. Using combinations of variants and events, you can allow your functions and routines to be used for any type of table that may be introduced into the system.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.142.144