answersLogoWhite

0


Best Answer

In visual Basic, the tab character has several representations:

  • ChrW(9)
  • vbTab
  • ControlChars.Tab
  • Convert.ToChar(Keys.Tab)

Of these, the last is supported by all .NET languages (including C# where '\t' can also be used).

To insert a tab into a Visual Basic string:

Dim text As String = "abc"

text.Insert (1, vbTab)

To insert an ampersand, use the character literal '&':

text.Insert (2, '&');

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In Visual Basic how do you place a tab into a string with the and sign?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between PHP and Visual Basic?

There is no difference between Visual Basic and Microsoft Visual Basic. We only remove the word 'Microsoft' to save our time and to tell others that what is the name of the company of Visual Basic.


The special character string that is used to print the diameter sign is?

%%c %%D %%DIA c%%


What method that returns string representation of the contents of the variable?

Since the question is in the Java category: in Java, the method is called toString(). This method will automatically be invoked if you implicitly convert an object to String type, for example: "The answer is: " + myObject In this example, the String concatenation (the plus sign) forces the object, myObject, to type String - to do this, the object's toString() method will be called.


Write EBNF decribtion for C float literal?

Convertible string := <significand><exponent> <significand> := [<sign>]<digits>[.<digits0>] <exponent> := E[<sign>]<digits0> <sign> := { + | - } <digits> := <digit><digits0> <digits0> := <digit>* <digit> := { 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }


How to add a character to a string in java?

Reading text from the console in Java is easy--if you know the language.Here's one way, you can create a class with the following code:import java.io.*;class lineScanner {private static String prompt;public lineScanner(String aPrompt) {setPrompt(aPrompt);}public void setPrompt(String aPrompt) {prompt=aPrompt;}public static String lineIn() throws IOException {String CurLine = "";System.out.println(prompt);InputStreamReader converter = new InputStreamReader(System.in);BufferedReader in = new BufferedReader(converter);CurLine = in.readLine();return CurLine;}}This class can be used to create an object that reads text. Here's how it works:create the object by usinglineScanner in = new lineScanner("a string");And by using the lineScanner object you've just created, you can input the text like this:string1 = in.lineIn();This will set the variable named string1 to text that is entered from the keyboard. When you have tried this out, you may have realized that the computer displays a short prompt message, "a string", when text is inputted.This is because when the object created, the message was set to "a string" by the constructor. You can change this message after it is set usingin.setPrompt("a different string);If you want to see the program in action, create another class with the following code:import java.io.IOException;/*** @author yourName*/public class mainClass {/*** @param args* @throws IOException*/public static void main(String[] args) throws IOException {lineScanner in = new lineScanner("Please enter a line.");String inBuffer = null;while (inBuffer != "exit") {inBuffer = in.lineIn();System.out.println("You entered: " + inBuffer);}}}

Related questions

Can you give me some example of visual sign?

Any sign that you can see.


A stop sign is an example of?

(Apex) A visual text.


How do you sign pagan in sign language?

Sign language is a visual language. However, WikiAnswers is a written medium, we cannot convey a visual answer to your question. Also there are various different sign languages and you would need to be sure that you learn the one relevant to your country.


Where is the red string on Burton snow pants?

sign of their company.


Where can you find code for a Visual Basic Tic Tac Toe Game?

Answer - Visual Basic tic-tac-toe codeYou can find Visual Basic code for ic-tac-toe at John Smiley's website. (Link below.) John Smiley teaches programming-including Visual Basic-and has written a number of books, such as Learn to Program with Visual Basic 6. To get the tic-tac-toe code, you may go to his website. The link(s) are below. www.johnsmiley.com (main page)www.johnsmiley.com/ilovetohelp.htm(on this page, scoll down about to the middle of the page and look for the section entitled "Downloads and Sample Projects." It is the 2nd to last link in the section. There should be a link to download it.Answer:For all of your source code needs you should go to :( http://www.planet-source-code.com/ )Not only do they have visual basic source codes they also have lot's of other languages as well...I have been using planet source code for about 6 years now,it's never let me down they always have something your looking for...Now you don't have to sign up with them but you should its free,and if you don't sign up thers a 3-5 download limit per day I think cant remember the numbers exactly though...


How do you say ryhthm and blues using sign language?

In American Sign Language, you can sign "rhythm" by moving your right hand in a circular motion in front of your chest. To sign "blues," you can use a sign that represents sadness or feeling down. Together, you can sign "rhythm and blues" by combining these signs in sequence.


What school crossing sign is an example of a?

Traffic sign Road sign Warning sign Information Visual symbol


Is it proper English to say speak sign language?

No, it is more appropriate to say "communicate in sign language" as sign language is a visual-gestural language and not spoken.


Where can you get string?

play with a cat with the string depending on how big the string is ha


What is the difference between PHP and Visual Basic?

There is no difference between Visual Basic and Microsoft Visual Basic. We only remove the word 'Microsoft' to save our time and to tell others that what is the name of the company of Visual Basic.


How to be a moshi member for free?

As you enter the web site, moshimonsters.com, the link to "Sign in" is in the upper right hand corner. All members use the same place to sign in, whether they are a Basic Member (free) or a Moshi Member (paid).


Is reproduction a basic sign of life?

Yea.. I think!