Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
| When you have | You should get |
|_______________|________________|
| Text1= Hello | Bleh |
| Text2= My | Hello |
| Text3= Name | My |
| Text4= Is | Name |
| Text5= Aubs | Is |
| | Aubs |
| | Bleh |
|---------------|----------------|
| Text1= | Bleh |
| Text2= My | My |
| Text3= Name | Name |
| Text4= Is | IS |
| Text5= Aubs | Aubs |
| | Bleh |
|---------------|----------------|
| Text1= Hello | Bleh |
| Text2= My | Hello |
| Text3= | My |
| Text4= | Aubs |
| Text5= Aubs | Bleh |
|---------------|----------------|
| Text1= Hello | Bleh |
| Text2= | Hello |
| Text3= | Aubs |
| Text4= | Bleh |
| Text5= Aubs | |
|_______________|________________|
Public Function fnStringCombiner(strResult As Variant, strSuffix As Variant _
, strSeparator As String) As String
'# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #'
' This function is designed to support the accumilation of a growing string of text '
' data where each item is progressively added with the separator string between each. '
' However, if either of the text strings are blank then the separator text is NOT added. '
' This avoids double separators ( blank lines or over large spaces ) in the result. '
' In addition, the use of Varient types allows the function to cope with NULL inputs '
' Yet NULLs are NOT propogated through the function. '
' If both inputs are Null the output = "" '
'# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #'
If Len(Nz(strResult, "")) = 0 Then ' Result is blank
fnStringCombiner = Nz(strSuffix, "") ' so just return strSuffix
ElseIf Len(Nz(strSuffix, "")) = 0 Then ' Suffix is blank
fnStringCombiner = Nz(strResult, "") ' so just return strReturn
Else
fnStringCombiner = strResult & strSeparator & strSuffix ' Do the usual combination job
End If
End Function