One of my clients has a form, containing a map (drawn with standard VFP objects - mainly lines). Some labels should be placed on the form, in specific places. The map represents production and flow of electrical power in a certain region. The data is available in tables.
There are several similar cases, but as an example, let's assume the power stations have letter codes, and the power produced should appear on the map, as captions. Let's say some sample data is:
Station Power
AAA 5.3
ABC 4.2
...
I suggested my client to give the corresponding Labels in the "map" form meaningful names, like LblAAA and LblABC, to make it possible for a program to easily fill in the data, by just generating the Label name, checking if the Label exists (there may be invalid data), and fill in the "Power" value.
Now, I was wondering whether this was the best way to do this, or whether there were any more elegant methods to get the job done. Or simply, some interesting alternative to choose.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)