How to use Formula and WPFNoMoveFocusOnEnter?

  • 1) How should be used funktions Formula and Check formula? What should I fill in these fields? Could you send me some examples? In Delphi is it (Propertíes - Options) a component TDBWPFormEditor.
    For example, when I have in a form two datafields from some table our database - field A and field B and third field (C) for result. And now I want obtain: sum, difference... For this case I filled in Inspector for third field (result) these formulas: A+B or C=A+B, etc., but any posibility (formula) return expected result.
    In Check Formula I expected some restrictive condition (for example <100, >=5000, etc).
    I add an extract from your file "WPF_engl.pas" with reference to this funktion:

    "WPFP_PropertyAdd([wobiObject],WPFP_A_FORMULA,WPFEditStyleText,-1,WPFP2,'Formula', 'Formula','Formula executed on any change in form','Options');"

    2) Second problem: In form-completion-mode doesn't work key Enter for movement in fields of form. In Delphi is (Properties - Edit options) a component "WPFNoMoveFocusOnEnter" set to value FALSE. For better understanding I add an extract from your WPForm2.pdf (site 38):

    "wpfNoMoveFocusOnEnter: In the FormCompletionMode the ENTER key usually selects the next control. This flag switches this behavior off."

    Thanks