Commonly used functions --M

1. $ Piece (abbreviated $ P):

  格式:$Piece(expression, delimiter [,from[, to]])

  Return one or more sub-strings are separated by delimiters of

2. $ the Order (abbreviated $ O):

  Format: $ Order (variable [, direction])

  Returns a specified variable in the direction of a previous or next index

3. $ the Get (abbreviated $ G):

  Returns the value of a variable

  If the variable exists variable itself is returned, there is no return null

4. $ the Data (abbreviated $ D):

  Determine whether there is variable

5. The $ Justify (abbreviated $ J):

  Format: $ Justify (expression, width [, desimal])

  Description: Returns the value of a right-aligned, and can change its format.

6. The $ the Extract (abbreviated E $) :

  Format: $ Extract (expression, [, from [, to]])

  Description: Returns the specified portion of the string.

  >Write $Extract("AABB",2,3)

   FROM

7.$Replace

  Format: $ replace (variable, str1, str2)

  Description: Replace characters

  s str=”abc”

  w $replace(str,”a”,”d”)

8. The $ Translate (abbreviated $ TR)

  Format: $ TRANSLATE (string, identifier [, associator])

9. The $ the Length (abbreviated $ L):

  Format: $ Length (expression [, delimiter])

  Description: Returns the length of a string, or the number of the delimiters substring

  >Write $Length("ABCD")

  4

10. The $ zconert (abbreviated $ zcvt) 

  >Write $zcvt(str,”U”)

Guess you like

Origin www.cnblogs.com/Life-is-Demo/p/11132748.html