|
|
This is string reversal program that made use of the Len and the Mid functions in VB. Lets recall what is the Mid function. The Mid function extracts a substring from the original phrase or string. It takes the following format: Mid(phrase, position, n) Where position is the starting position of the phrase from which the extraction process will start and n is the number of characters to be extracted. In this program, I am using a combination of the Len and the Mid functions to extract one character at a time from a phrase entered by the user, starting from the back and gradually move infornt using the For...Next Loop. I have also created another procedure to restore the phrase, based on the same principle. Here is the Program:
Private Sub
Text1_Change() and here is the Interface
|