It looks like you're new here. Sign in or register to get started.
IF STRLEN(YourString) > 12 THEN ERROR('the string is too long');
Comments
NewString := COPYSTR(String, Position [, Length])
In your situation :
NewString := COPYSTR(String,1,12);
RIS Plus, LLC