VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Remove the underscore _ from a objects caption.

by Wayne Alec de Bruin (6 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 13th September 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Remove the underscore _ from a objects caption.

API Declarations



Be sure to add a underscore to the button's caption to see result!.


Rate Remove the underscore _ from a objects caption.



'
'   Use button's caption in message box caption but remove button's underscore.
'
    Dim X As String
    Dim ButtonCaption As String
    X = Command1.Caption
    X = Replace(X, "&", " ")
    ButtonCaption = X
'
    MsgBox "See, the underscore is gone.", , "" & ButtonCaption
'
End Sub


Download this snippet    Add to My Saved Code

Remove the underscore _ from a objects caption. Comments

No comments have been posted about Remove the underscore _ from a objects caption.. Why not be the first to post a comment about Remove the underscore _ from a objects caption..

Post your comment

Subject:
Message:
0/1000 characters