Results 1 to 4 of 4

Thread: reverse a word string

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    NJ, USA
    Posts
    326

    reverse a word string

    Simple question:

    How would I reverse the characters in a string?

    For example, "dog" would become "god" and "word" would become "drow".

    Thanks
    VB.NET 2005 Express with .Net 2.0
    C# 2010 .Net 4.0

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Like:
    VB Code:
    1. MsgBox StrReverse("dog")

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    NJ, USA
    Posts
    326
    Originally posted by Bruce Fox
    Like:
    VB Code:
    1. MsgBox StrReverse("dog")
    I had a feeling it was simple... heh.

    Thanks for your help.
    VB.NET 2005 Express with .Net 2.0
    C# 2010 .Net 4.0

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Syntax:
    StrReverse Function

    Description

    Returns a string in which the character order of a specified string is reversed.

    Syntax

    StrReverse(expression)

    The expression argument is the string whose characters are to be reversed. If expression is a zero-length string (""), a zero-length string is returned. If expression is Null, an error occurs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width