Hello all,

I need to reverse a LastName,FirstName in the data stream. I am using a Global Variable "global.ProviderName" to store the string.

Here is the vbscript that I am using:

****************************************************************
dim Str
dim reversedStr

str =Watch.GetVariable("global.ProviderName")
reversedStr =string.Join(",", str.Split(',').Reverse())

Watch.SetVariable("global.ProviderRev"), reversedStr

****************************************************************

It doesn't seem to like the ".Reverse()" command.

I can't seem to find a comparable command. Does anyone have a simple way to accomplish the task?

The Original text is formatted something like "Smith MD, John Adam"

Thank you in advance for the help,

Dan