Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic application
Message
From
16/07/2003 11:01:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
16/07/2003 02:29:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00810544
Message ID:
00810667
Views:
7
>Hi,
>I am trying to build an application that customizable without modify the code or re-compile. The customization involved I can think of as this moment as the following:
>
>1. Decimal point of currency field shown on screen - some users prefer 2 decimal whereas some other use up to 4 decimal point in their business

Create a user table, with the preferences for each user.

Create a form, where the user sees only his own record(s).

Dynamically change the InputMask of the currency field. If you need to do this in many forms, using a class for your currency fields will save you lots of work.

>2. Decimal point of Qty field - some user use integer as qty whereas some use 3 decimal point (for weighting item).

Same as above.

>3. The width of field in report based on the setting 1, 2.

Instead of printing MyCurrencyField, print something similar to transform(MyCurrencyField, "###,###.##"). Replace the second parameter with a variable.

>4. Variable field needed to be shown in report.

Sometimes one field, sometimes another? Keep the field name (or expression name) in a variable, and print eval(MyVariable).
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform