Tuesday, August 17, 2010

Visual Basic String Function : StrReverse

Purpose : The StrReverse function returns a string that has all its characters n reverse order.

Syntax :
retStr = StrReverse ( String1 )

String1 = Specities the string that should have all its characters displayed in reverse

retStr ( StrReverse ( " Join Samrudhi Computers for be a Computer Programmer " )

Result is " remmargorP retupmoC a eb rof sretupmoC ihdurmaS "
You had to write our own function to do this using the Mid$ function and iterate through the string using a For....Next..Loop . Now that it is a built -in function, this process is a lot faster than any function that could be written in Visual Basic.

No comments:

Post a Comment