Try
 Code:
$Fullname = @FULLNAME
If InStr(@FULLNAME, ',')                   ; if last, first
  $aName=Split(@FULLNAME, ',')             ; split
  $FullName = @Name[1] + ' ' + $Name[0]    ; in reverse order
EndIf
Also, replace @ERROR with @SERROR for human-readable messages.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D