Hi Mark,

Welcome to the board.

There is no need to put the userid in an array and use the split command. Below are two examples that get the first 8 characters of the username if the username is longer than 8 characters. If the username is 8 or shorter it takes the full username.

 Code:
Break on

If Len(@USERID) > 8
	$username = Left(@USERID, 8)
Else
	$username = @USERID
EndIf

? "Original username: " + @USERID
? "First 8 of username: " + $username


or

 Code:
If Len(@USERID) > 8
	$username = SubStr(@USERID, 1, 8)
Else
	$username = @USERID
EndIf

? "Original username: " + @USERID
? "First 8 of username: " + $username
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.