cancel
Showing results for 
Search instead for 
Did you mean: 

Editbox Character Length

SOLVED
Soton14
Member
Solved!

Editbox Character Length

I would like to limit the character length that can be entered in a dialog editbox, is this possible?

 

Application limit it 6 characters for date format 011214 = 1st Dec 2014

 

Thank You 

3 REPLIES 3

Re: Editbox Character Length

Hi,

 

yes, programmatically with the EventChange-Method Smiley Happy

 

Greetings,

Martin

Soton14
Member

Re: Editbox Character Length

Hi Martin

 

Great news. I am new to using Dialog Editor, and unfamiliar with EventChange, could you expand upon how I would configure it?


Thanks

Solution

Re: Editbox Character Length

Hi,

 

it should look somehow like this:

 

Sub EditBox1_EventChange(ByRef This) 'Erzeugter Event-Handler

  If (Len(This.Text) > 6) Then
    This.Text = Left(This.Text, 6)
  End If
End Sub