The basic syntax --Caché

1. the SET: s shorthand for a variable or multi-dimensional array assignment

  Example:

    set str = "abc"

    s ^TMP("myglobal") = "This is a global"

    s date = "2019-7-2"

2. do: abbreviated do, perform an operation, as performed in the method of class terminal:

  d ##class(web.DHCATest).Test()

  d:rowid>0 ##class(User.ClassName).%DeleteId(rowid)

3. the kill: abbreviated k, or Global variables cleared

  Usage 1:

    k n(1)

    k ^TMP("myglobal")

  Usage 2:

    s a=1

    s b=2

    kill (a,b)

4. the Write: output value of the short variable or expression w

  usage:

    s str = "this is a str"

    W str // output value of str

    w!, str // Wrap output

5. The Zw: the value of the child node and the value output variable or expression

  zw ^ ARC

6. The the Quit: q shorthand or exit the program loop

  quit class can return a value in the method, the results can be quit out

7. Comment way

  //

  /**/

  ;

8. The BREAK b abbreviated termination procedure, for breakpoint debugging

  

Guess you like

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