Cause:
The message description input format in the Message statement does not meet the requirements.
Troubleshooting:
Check whether the number after % in the message description of the Message statement is 1 or 2.
Solution:
Change the number after % in the message description of the Message statement to 1 or 2.
Case sharing:
Message(“cuowuxiaoxi%4”,eInfo,int1)
Running this statement reports error 3871.
Change the 4 after % in the statement's 1st parameter to 1; that is, change the Message statement to:
Message(“cuowuxiaoxi%1”,eInfo,int1)
The statement then runs without an error and displays the user-defined warning signal
3870: cuowuxiaoxi9
Here %1 is replaced by the value of int1.