answersLogoWhite

0


Best Answer

Dim x As String

x = "HELLO"

Dim tmpString As String

tmpString = Nothing

For j = 0 To x.Length - 1

Dim int

int=x.Length - 1

int=int-j

tmpString=x(j)

Next

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Dim num,rev

num= inputbox("Enter a number")

If len(num)=4 Then

rev=rev*10 + num mod 10

num=num/10

num= left(num,3)

rev=rev*10 + num mod 1

Dim num,rev

num= inputbox("Enter a number")

If len(num)=4 Then

rev=rev*10 + num mod 10

num=num/10

num= left(num,3)

rev=rev*10 + num mod 10

num=num/10

num= left(num,2)

rev=rev*10 + num mod 10

num=num/10

num= left(num,1)

rev=rev*10 + num mod 10

msgbox "Reverse Order of the number is "&rev

Else

msgbox "Number, you entered is not a 4 digit number"

End If

0

num=num/10

num= left(num,2)

rev=rev*10 + num mod 10

num=num/10

num= left(num,1)

rev=rev*10 + num mod 10

msgbox "Reverse Order of the number is "&rev

Else

msgbox "Number, you entered is not a 4 digit number"

End If

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Creation: Dim MyString As String

Reversal:

Dim ReversedString As String

Do Until (MyString.Length = 0)

ReversedString += MyString.Substring(MyString.Length - 1, 1)

MyString = MyString.Remove(MyString.Length - 1, 1)

Loop

Messagebox.Show(ReversedString)

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

for a=inputbox("enter no.")
while a>0
c=amod10
print c
a=a\10
wend
end if
end sub

That is easy programming
i m in ninth grade in India

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a string and reverse a string in visual basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you create a program in visual basic?

arrays programms in visual basic


What is trunicate?

Trunicate is when you trim a string in visual basic


What is visual basic generally?

Visual Basic is a computer development program. It's used to create .exe or executable programs.


Why visual basic is referred to as a tool?

Visual Basic is a computer programming language that can be used to create programs, but it is not a program in itself.


What program can create with visual basic 6.0?

You can create anything you set your mind to.


What function are used for string length in visual basic?

string length is a function use to check the lenght of a string i.e number of alphabets in a word or sentence.


What is visual basic 2008?

Visual Basic create windows form applications. They are things like your Web Browser, e.g. Internet Explorer.


What is mean by the term Element of art?

A basic visual symbol an aitist uses to create visual art


What is the history of Visual Basic 6.0?

Visual Basic was first released in 1992 Visual Basic was first released in 1998. This version included the ability to create web-based applications. Support for this version ended in 2005.


What is the correct coding for converting a string to a double in visual basic 2010?

Dim i as double = CDbl("12")


In Visual Basic how do you place a tab into a string with the and sign?

In visual Basic, the tab character has several representations:ChrW(9)vbTabControlChars.TabConvert.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, '&');


Is visual basics only available in Microsoft Excel?

No, Visual Basic is a program on its own too, used to create programs. VBA is used in Excel and other programs (Visual Basic for Applications).