DEFINE TEXTBOX TB_MBEGREK
ROW 40
COL 120
HEIGHT 25
WIDTH 120
VALUE 0 // or value ''
TOOLTIP "Enter Digits 0 to 9"
INPUTMASK '999999'
FONTNAME "Arial"
FONTSIZE 10
FONTBOLD .F.
ON GOTFOCUS Form_Grootboek_PDF.TB_MBEGREK.BackColor := WHITE
ON LOSTFOCUS Form_Grootboek_PDF.TB_MBEGREK.BackColor := SILVER
BACKCOLOR SILVER
FONTCOLOR BLACK
END TEXTBOX
When running this the value is sometimes 12 spaces.. Am I missing something or is it a little bug?
That works, but I want a CHAR field which only may contains 0-9 (a numeric code actually: 000000-999999).
What I have now (see initial coding) is working fine, EXCEPT it looks like the value-clause was set to space(6) and focosing on it sets cursor at the end and then you must select input before you can enter a new value...
serge_girard wrote: ↑Tue Feb 21, 2017 3:12 pm
That works, but I want a CHAR field which only may contains 0-9 (a numeric code actually: 000000-999999).
What I have now (see initial coding) is working fine, EXCEPT it looks like the value-clause was set to space(6) and focosing on it sets cursor at the end and then you must select input before you can enter a new value...