Language and Conventions Overview | Expressions


字符串表达式

A string expression is the summation of two or more string literals, string variables, or any combination of the two. Adding (concatenated) strings is accomplished by using a plus ("+") between the two values to be joined together.

The following shows how a string expression would be used.

STRING/STR(3,132)
STR(1)='DRILL SIZE ='+'.375 DIA.'
STR(2)='SPOTFACE* '+STR(1)
STR(3)=STR(2)+' $$POSITION 4'
PRINT/STR(3)

The PRINT statement would write the following text to the screen:

SPOTFACE* DRILL SIZE =.375 DIA. $$POSITION 4


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.