Creating a String from Other Variables

I have five questions (variables) from which I want to created a concatenated string variable with a specified format. I inserted a variable of type string

dob is Date of Birth
I also want to convert the Child_Letters and Mother_Letters variables to upper case

I tried to create the desired string variable using the following but it does not work. can you help?

CountryCode + “/” + comm_code + “/” + ToUpper(Child_Letters) + “/” + ToUpper(Mother_Letters) + “/” + dob

Edwin,

you are using the “ToUpper”:https://msdn.microsoft.com/en-us/library/ewdd6aed(v=vs.110).aspx () method incorrectly.
Not ToUpper(something) , but: something.ToUpper() .

All questions in the above must be of string type.
If not, use the “ToString()”:https://msdn.microsoft.com/en-us/library/8tc6ws5s(v=vs.110).aspx () method.

Best, Sergiy

1 Like