Write a VB program to accept a string from the user and write a f`unction to reverse the string.Ignore all leading and tailing spaces in the input string.Display the reversed string in a message box.
Refer Reverse a given 5 digit number also.
====================================================================
Compare the same type of program I did in JAVA , the link is Reverse a number
Refer Reverse a given 5 digit number also.
(A)Program Design :
(B) Property(Controls Used) :
- Label with Caption Input Text
- One TextBox
- One Command Button ( Reverse Text)
(C) Attaching Code to the Object :
Private Sub Command1_Click() MsgBox StrReverse(Trim(Text1)) End Sub |
(D) Output :
====================================================================
No comments:
Post a Comment