Results 1 to 2 of 2

Thread: The Wild Thing

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Belgrade,Yugoslavia
    Posts
    34
    How I can retrieve the character number in a RichTextBox, but not to calculate the 'SPACE' character ?
    ... and with 'SPACE' character ?

  2. #2
    Guest
    So you want to retrieve the number of characters in a RichTextBox w/wo/ space?

    Code:
    Private Sub Command1_Click()
    Dim wspace As String
    Dim wospace As String
    wspace = Len(RichTextBox1.Text) 'get num with space
    wospace = RichTextBox1.Text 'wospace = Text
    wospace = Replace(wospace, Chr(32), "") 'replace space with ""
    wospace = Len(wospace) 'get num without space
    Debug.Print wspace; wospace 'returns text w/wo/ space
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width