code:
$first=left(@USERID,1)

See also RIGHT/SUBSTR in the KiXtart Manual.
_________________________
There are two types of vessels, submarines and targets.