Coding your own LiveBindings methods
For this last section on LiveBindings, we'll continue with the prior project, but I've copied it again to a new folder so that if you haven't compiled the package introduced in this section yet, you'll still be able to run the sample in the previous section.
What I'd like to do here is show the number of years' experience each of the contacts in this app has. Since the Hire Date
field is a date and the date type is a double, all I will need is a way to get the current date; then, I can subtract the two and divide it by 365 to get the number of years difference. Surprisingly, there doesn't seem to be a way to do that. However, with a little knowledge of how these methods are created, it's not too difficult to create one ourselves.
LiveBindings methods are Delphi packages that are installed on the IDE to give us various design-time functionality and syntax checking functionalities; the units also need...