What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Help » Big initial in a message

Big initial in a message
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Big initial in a message
btw

quote:
Originally posted by Matty
code:
Function talker(strInput)
   If strInput <> "" then
      If InStr(1, "abcdefghijklmnopqrstuvwxyz", Left(strInput, 1)) Then
         talker = UCase(Left(strInput, 1)) + Right(strInput, Len(strInput) - 1)
      Else: talker = strInput
      End If
   Else: talker = ""
   End If
End Function


This can be much shorter I believe, like so:
code:
Function talker(strInput)
  talker = UCase(Left(strInput, 1)) + Mid(strInput, 2)
End Function

- UCase will only uppercase characters which have an uppercased equivalent, the rest is left alone, so no need for double checking.
- The line will also convert a 0-length string to a 0-length string (used by StuffPlug-NG to check for a valid talker).
;)

This post was edited on 10-15-2004 at 11:56 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-15-2004 11:55 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Big initial in a message - by zhorty on 10-02-2004 at 12:28 AM
RE: Big initial in a message - by CookieRevised on 10-02-2004 at 01:11 AM
RE: Big initial in a message - by zhorty on 10-15-2004 at 04:46 PM
RE: Big initial in a message - by crank on 10-15-2004 at 05:15 PM
RE: Big initial in a message - by matty on 10-15-2004 at 05:51 PM
RE: Big initial in a message - by zhorty on 10-15-2004 at 06:50 PM
RE: Big initial in a message - by zhorty on 10-15-2004 at 06:51 PM
RE: Big initial in a message - by matty on 10-15-2004 at 06:54 PM
RE: RE: Big initial in a message - by zhorty on 10-15-2004 at 07:08 PM
RE: RE: Big initial in a message - by CookieRevised on 10-15-2004 at 11:55 PM
RE: Big initial in a message - by Concord Dawn on 10-16-2004 at 04:25 AM
RE: Big initial in a message - by CookieRevised on 10-16-2004 at 02:55 PM
RE: Big initial in a message - by Spanker on 10-16-2004 at 04:37 PM
RE: RE: Big initial in a message - by Leif on 10-17-2004 at 12:38 AM
RE: Big initial in a message - by CookieRevised on 10-17-2004 at 12:28 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On