VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



use this code to properly pluralize peoples names.

by mike ruberto (2 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 12th July 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

use this code to properly pluralize peoples names.

Rate use this code to properly pluralize peoples names.



Dim stringLen As Long
Dim S As String
Dim letter As String
S = "s"
stringLen = Len(playerName)
letter = Mid(playerName, stringLen, 1)
If letter = S Then
    playerName = playerName & "'"
Else
    playerName = playerName & "'s"
End If


End Sub


Download this snippet    Add to My Saved Code

use this code to properly pluralize peoples names. Comments

No comments have been posted about use this code to properly pluralize peoples names.. Why not be the first to post a comment about use this code to properly pluralize peoples names..

Post your comment

Subject:
Message:
0/1000 characters