May 2017
Intermediate to advanced
442 pages
11h 55m
English
There are two main new topics in this recipe. The first is to use the dictionary classes, DictTable and DictField, to gain access to the table and field properties. This was used to both validate the field and also to build a custom lookup for fields that can be edited.
The other new topic is that we can use the field ID to access the field on a record; for example, the code vehicle.Description = "New description"; is equivalent to the following:
RefFieldId fieldId = fieldNum(ConWHSVehicleTable, Description); vehicle.(fieldId) = "New description";
We have to be careful because the following code would compile, but fail with a runtime error:
RefFieldId fieldId = fieldNum(ConWHSVehicleTable, Description); vehicle.(fieldId) ...
Read now
Unlock full access