<-- Previous || Up || Next -->

Rotate Words Right Function
String Words Class

Public Function RotateWordsRight( _
    ByVal vValue As Variant _
    ) As Variant

Rotate/move the last word within the string vValue to the beginning of the string.

Examples:
    RotateWordsRight("111 222 333") = "333 111 222"
    RotateWordsRight("This is a test.") = "test. This is a"
    RotateWordsRight("This is a  test.") = "test. This is a "
    RotateWordsRight("test. This is a ") = " test. This is a" ' Warning!
See also:
    RotateWordsLeft Function
    ShiftWordsRight Function
vValue: String containing the phrase which is to have its first space-separated word moved to the end of the string. Function returns Null if vValue is Null or cannot be fixed up to a String.

Note: Function uses the built-in character classification routines to determine which characters represent spaces.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.