Search

Top Ten List

Of all my ramblings, people seem to find the following the most interesting:
  1. Pimp My Fields
  2. Using the WebBrowser control to view attachments inline
  3. Purty charts in Domino
  4. My approach to DbLookup and DbColumn in Javascript
  5. Mind Map of Database Design
  6. Design Catalog - version control for Domino
  7. Workaround for LotusScript event binding
  8. Clickable URL's in Notes view columns
  9. Every time you use window.open, God kills a kitten
  10. Create, edit, and delete without agents via AJAX

« Parsing formulas on the fly via @Eval and @While | Main| AJAX IM for Domino »

Probably useless - LotusScript toAcronym()

Category show-n-tell thursday
Not sure if there's a practical use for this, but if there is, enjoy:

Public Function toAcronym (Byval p_strFullName As String, Byval p_boolPunctuate As Boolean) As String
'Written on a whim by Tim Tripcony on 7/8/2006
    Dim intCharacterCode As Integer   
    Dim strAcronym As String
    Dim strFirstCharacter As String
    Dim varNameWords As Variant
   
    Let varNameWords = Split(p_strFullName)
    Forall strNameWord In varNameWords
        Let strFirstCharacter = Left$(strNameWord,1)
        Let intCharacterCode = Asc(strFirstCharacter)
        If ((intCharacterCode < 91) And (intCharacterCode > 64)) Then 'Only process words beginning with a capital letter
            Let strAcronym = strAcronym & strFirstCharacter
            If p_boolPunctuate Then
                Let strAcronym = strAcronym & "."
            End If
        End If
    End Forall
    Let toAcronym = strAcronym
End Function

Contact Me

Hire Me

Elsewhere

What the Quote?

"No means no, Ra."

Tim Tripcony

"When driving in Jersey, you need to drive confident, so everyone else drives scared."

Steven Rodgers

"It involves a flank, a beachhead, and a claymore. Solve for X."

Steven Rodgers

"I've always wanted to say, 'Paris is burning", and have it be true."

Jennifer Holland

"Where's the 'existing server'? Hold on, I don't know if 'redneck' has an I.P. address."

Steven Rodgers

Apparel

Lotus Rocks

I write the code that makes the young girls cry

Current Terror Alert Level

Assorted Linkage

ClustrMap