[RESOLVED] Write a phone number-VBForums
Results 1 to 3 of 3

Thread: [RESOLVED] Write a phone number

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2015
    Location
    ANTANANARIVO
    Posts
    352

    Resolved [RESOLVED] Write a phone number

    Hello VBForums
    Hello every one
    Please
    How to make that when I type the numbers of telephone in Text1 for example ( 2578489623 ) will be displayed in Text2 like this ( 25 78 48 96 23 )
    Thank you in advance for help
    Cordially
    MADA

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    17,865

    Re: Write a phone number

    What about something like:

    Code:
    Option Explicit
    
    Private Sub Command1_Click()
        Dim Text As String
    
        Text = Text1.Text
        If Text Like "##########" Then
            Label1.Caption = Format$(Text, "@@ @@ @@ @@ @@")
        Else
            Label1.Caption = "bad value"
        End If
    End Sub
    Name:  sshot.png
Views: 61
Size:  2.1 KB

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2015
    Location
    ANTANANARIVO
    Posts
    352

    Re: Write a phone number

    Hiii dilettante
    Thank you master
    Thank you very very much for help
    This is what i want see
    Perfectly resolved
    Cordially
    MADA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.