Inverting text with simple code

Submitted by:Jhon Brain

Date added:18 March, 2012

Category:Visual Basic

Visual Basic code for inverting text with simple code. Very easy for all beginners. Easy to understand.
Compatibility: VB 6
Author of the code: Ben - Ezrah Mansilla
Declarations:
Add two text box with default name
One command with default name

Tags: string handling , string manipulation , inverting text

Code Snippet:

private Sub Command1_Click()
dim i as integer
dim Ctr as string
for i = Len(text1.text) to 1 step -1
ctr = ctr + mid(text1.text,i,1)
next i
text2.text = ctr
end sub
 
 

Comments