VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code adds a charicter to the end of a line before going to the next

by Steven Bailey (10 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 27th February 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code adds a charicter to the end of a line before going to the next

Rate This code adds a charicter to the end of a line before going to the next



'2) Add the code below to the form
'3) Replace the "," with whatever charicter or text you want

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
   Text1.SelText = Text1.SelText + ","
End If
End Sub

Download this snippet    Add to My Saved Code

This code adds a charicter to the end of a line before going to the next Comments

No comments have been posted about This code adds a charicter to the end of a line before going to the next. Why not be the first to post a comment about This code adds a charicter to the end of a line before going to the next.

Post your comment

Subject:
Message:
0/1000 characters