G
Guest
I have a form in which users may select any number of six phrases. I want to
combine the phrases, which is easy (Phrase1 + phrase2 + etc..). However, I'd
like to be able to incorporate comma marks and a period between the selected
phrases. The way I have it now, if the user only selects phrase3 for
example, I get two ill-placed punctuation (ie. "You have selected" + Phrase1
+ ", " + Phrase2 + ", " + Phrase3 + etc. turns into "You have selected, ,
Phrase3, , , ,.)
Is there a way to corretly add the selected strings up?
I currently have been working on very complicated If..then statements such as:
If Phrase1 = "" then
Phrase1 = ""
If Phrase2 = "" then
Phrase2 = ""
If Phrase3 = "" then
Phrase3 = ""
Else Phrase3 = "String expression"
.... and this goes on and on trying to test every possible combination.
Any suggestions?
Thansk!
combine the phrases, which is easy (Phrase1 + phrase2 + etc..). However, I'd
like to be able to incorporate comma marks and a period between the selected
phrases. The way I have it now, if the user only selects phrase3 for
example, I get two ill-placed punctuation (ie. "You have selected" + Phrase1
+ ", " + Phrase2 + ", " + Phrase3 + etc. turns into "You have selected, ,
Phrase3, , , ,.)
Is there a way to corretly add the selected strings up?
I currently have been working on very complicated If..then statements such as:
If Phrase1 = "" then
Phrase1 = ""
If Phrase2 = "" then
Phrase2 = ""
If Phrase3 = "" then
Phrase3 = ""
Else Phrase3 = "String expression"
.... and this goes on and on trying to test every possible combination.
Any suggestions?
Thansk!