Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Tuesday, July 26, 2011

VB-67 : Reverse a String

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.


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: