Ticket T848427
Visible to All Users

TextEdit - How to check if the phone mask is full or incomplete

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM Q561740: TextEdit Phone Number Mask]

Hi, how can i check that textedit masked as phone number is full or not completed?

Comments (2)
DevExpress Support Team 5 years ago

    Hi Muhammet,

    Before we suggest any solution to you, we need to completely understand your scenario. Would you please describe it in greater detail? What task are you trying to accomplish by checking if the phone mask is full or incomplete? A step-by-step description would be greatly appreciated.
    I look forward to your response.

    MA MA
    Muhammet Aytas 5 years ago

      İn my project i have add records to my database existing in SQL Server.
      For customers info i  need phone number information.
      When i save a record i wish to check my txtTelephone texedit masked as phone whether any character is missing or all phone number characters are completed.
      Thank in advance.

      Answers approved by DevExpress Support

      created 5 years ago

      Hi,

      When the editor's value does not match the assigned mask, this editor fails the validation. Thus, you can use the DoValidate method to perform editor value validation and check if it is valid:

      Visual Basic
      Dim isValid = txtTelephone.DoValidate()

      Please try this and let us know your results.

        Comments (2)
        MA MA
        Muhammet Aytas 5 years ago

          Thank you very much, Igor.
          This worked for me.

          DevExpress Support Team 5 years ago

            You are always welcome!

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.