Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design question
Message
From
15/01/2005 20:14:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Design question
Miscellaneous
Thread ID:
00977521
Message ID:
00977521
Views:
51
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)
Next
Reply
Map
View

Click here to load this message in the networking platform