Function WordSwap() Foundation
Swaps adjacent words (2 byte sequences) in a string.
WordSwap( <cString> , ;
[<lSwapBytes>] ; // Default: .F.
) --> cResultString
Returns a string where all adjacent words (2 byte sequences) have been swapped: "ABcdEFgh" -> "cdABghEF"
If <lSwapBytes> is set .T. the bytes of a word are swapped, too: "ABcdEFgh" -> "dcBAhgFE"
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.