answersLogoWhite

0


Best Answer

Because in the event you didn't require the extra space it would prove impractical, it is far easier to add an extra space character to a string than remove one.

Use:

String = String1 & " " & String2

Or add the space to end of string one when a value is allocated to it:

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why doesn't Visual Basic automatically insert a space between strings concatenated with the and operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which operator is used to compare strings in Perl?

eq


What is the Program for compare two strings using OR operator in java?

The String class includes two helpful methods: equals and compareTo.string1.equals(string2) will return true if the two strings contain the exact same charactersstring1.compareTo(string2) will return an int which describes the lexicographic relationship between the two strings. It will return a negative value if string1 is "less than" string2, a positive value if string1 is "greater than" string2, or zero if the two are equivalent strings.


What is the difference between forward slash and backward slash in c?

forward slash - division operator backward slash - special character (e.g. \n - newline) in C strings


What happens when one string is appended to the end of another in Java?

This is called "concatenation", and pretty much just smashes the two Strings together. For example: import java.util.*; public class Example { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please enter a string: "); String input = in.next(); System.out.println("Please enter another string: "); String input2 = in.next(); String together = input + input2; System.out.println("The strings concatenated yields: " + together); } } OUTPUT: Please enter a string: Hello Please enter another string: Goodbye The strings concatenated yields: HelloGoodbye As well, you can use String.nextLine() to get more than one word per string: import java.util.*; public class Example { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Please enter a string: "); String input = in.nextLine(); System.out.println("Please enter another string: "); String input2 = in.nextLine(); String together = input + input2; System.out.println("The strings concatenated yields: " + together); } }


What is the operator that cannot be overloaded?

There are 5 operators which cannot be overloaded. They are: * .* - class member access operator * :: - scope resolution operator * . - dot operator * ?:: - conditional operator * Sizeof() - operator Note:- This is possible only in C++.

Related questions

What is it called when you add up letters?

concatenate is the operation of joining two character strings end to end. For example, the strings "snow" and "ball" may be concatenated to give "snowball".


Which operator is used to compare strings in Perl?

eq


Why does the textbox become non editable when displaying concatenated strings in vb6?

When you click on the textbox, look at the bottom right in the list, make it so it is not Read-Only


What is the Program for compare two strings using OR operator in java?

The String class includes two helpful methods: equals and compareTo.string1.equals(string2) will return true if the two strings contain the exact same charactersstring1.compareTo(string2) will return an int which describes the lexicographic relationship between the two strings. It will return a negative value if string1 is "less than" string2, a positive value if string1 is "greater than" string2, or zero if the two are equivalent strings.


What are the restriction that are applied to operator overloading?

Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.


Which operator is used in java script to work on string?

If you want to check if two strings are equal you have to use string_b)alert("Strings are equal");elsealert("Strings are not equal");}


What is operator over loading?

Same operator can be used for different purposes like + can be used for addition of two integers and used for concatenate strings.


C coding for operator overloading?

C does not support operator overloading. If you mean C++ operator overloading, it depends on exactly what you wanted to do. If you wanted to '+' to strings, then you could write: string operator+(string a, string b) { // do something }


What is the difference between forward slash and backward slash in c?

forward slash - division operator backward slash - special character (e.g. \n - newline) in C strings


Do you have to use delete operator on C plus plus strings before exiting your application?

no you dont


How many strings does a banjo?

a modern banjo has between 3 and 12 strings


What is the difference between nylon strings and steel strings?

Nylon strings are for beginners, whilst steel strings are harder wearing on your fingers but create a nicer sound.