>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)