>Hilmar don't put the SET SYSFORMATS ON on the lostfocus you should put SET POINT TO this will restore the default being the point or comma.
Help states that SET POINT TO "reset the decimal to a period". I wanted to restore the user preferences (Control Panel).
Anyway, I tried SET POINT TO, and also SET POINT TO ",". The main problem remains: that the changes on GotFocus() and LostFocus() affect all controls, and not only the current one.
Since I did the change in the base-class cTextBox, whenever I tab into a TextBox, all commas on the form change to points. When I select another kind of object (e.g.: a CheckBox), the separators change back to comma. This change affects all textboxes, and not only the currently selected one.
Hilmar.
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)