Visual Basic (VB) Program - To Reverse a String
- Use of StrReverse() Function
Program:
Sub ReverseString()
Dim s As String
s = InputBox("Enter a string")
s = StrReverse(s)
MsgBox s
End Sub
Note: Copy the code and run in Microsoft Visual Basic Editor.(Microsoft Excel)
- Use of StrReverse() Function
Program:
Sub ReverseString()
Dim s As String
s = InputBox("Enter a string")
s = StrReverse(s)
MsgBox s
End Sub
Note: Copy the code and run in Microsoft Visual Basic Editor.(Microsoft Excel)
No comments:
Post a Comment