Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.



Public Function strBumpUpName(strMName As String, strMyStr As String) As String
' Procedure :   strBumpUpName
' Description:  Generate the next string in the sequence
' Copyright: Chris Greaves Inc.
' Inputs:       Generic string, pool of available characters.
' Returns:      String, generic name augmented by a character.
' Assumes:      Nothing
' Side Effects: The pool will be reduced by one character.
' Tested:       By the calls shown below.
    If Len(strMyStr) > 0 Then
        strBumpUpName = Left$(strMName, Len(strMName) - 1) & Left$(strMyStr, 1)
        strMyStr = Right$(strMyStr, Len(strMyStr) - 1)
    Else
        strBumpUpName = ""
    End If
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1

Visual Basic (VB and VBA)

Copyright 1999-2001 Christopher Greaves. All rights reserved.
Home Page and email to [email protected]
If in doubt, record a macro and inspect the entrails!

 

 

Please read the DISCLAIMER.

Here is an INDEX to all the procedures.

You will probably need one copy of my GLOBAL DECLARATIONS.

Public Function strBumpUpName(strMName As String, strMyStr As String) As String
' Procedure :   strBumpUpName
' Description:  Generate the next string in the sequence
' Copyright: Chris Greaves Inc.
' Inputs:       Generic string, pool of available characters.
' Returns:      String, generic name augmented by a character.
' Assumes:      Nothing
' Side Effects: The pool will be reduced by one character.
' Tested:       By the calls shown below.
    If Len(strMyStr) > 0 Then
        strBumpUpName = Left$(strMName, Len(strMName) - 1) & Left$(strMyStr, 1)
        strMyStr = Right$(strMyStr, Len(strMyStr) - 1)
    Else
        strBumpUpName = ""
    End If
End Function

We all knew nothing when we started …
Home Page and Contact Information
Send email to [email protected].
This page was last updated Thursday, November 15, 2001

 

 

Hosted by www.Geocities.ws

1