HasanCAD 发表于 2015-11-4 07:53:53

这是一份内容非常丰富的文件的开始。如果我们能为每个函数获得几个示例,那将是一个非常好的参考。

HasanCAD 发表于 2015-11-4 08:13:18

这就是开始
    DIESEL String Functions
    -----------------------

    $(+,,,...)
      Thesumofthenumbers , , ... is returned.
Example:
(menucmd "m=$(+,1,2)")
"3"

(menucmd "m=$(+,2,1)")
"3"

(menucmd "m=$(+,1,2,1)")
"4"

(menucmd "m=$(+,1,2,3)")
"6"

(menucmd "m=$(+,1,2,3,4,5,6)")
"21"

; (menucmd "m=EXPRESSION")used to give the result in VLIDE
; in FIELDS we us EXPRESSION ONLY


; The result can used as variable but be note that the variable type is string
(setq a (menucmd "m=$(+,1,1)"))
(type a)
STR

; Be note that we can not use variables
; If needed we have to add the expression itself
(menucmd "m=$(+,pls02,1)")
" $(+,??) "

(menucmd "m=$(+,$(+,1,2),1)")
"4"

    $(-,,,...)
      Theresultof subtracting the numbersthroughfrom
         is returned.
Example:
(menucmd "m=$(-,1,2)")
"-1"

(menucmd "m=$(-,2,1)")
"1"

(menucmd "m=$(-,1,2,3,4,5,6)")
"-19"

(menucmd "m=$(-,6,3)")
"3"

(menucmd "m=$(-,6,5,4,3,2,1)")
"-9"

   $(*,,,...)
      The result of multiplying the numbers,,...is
      returned.
Example:
(menucmd "m=$(*,1,2)")
"2"

(menucmd "m=$(*,2,1)")
"2"

(menucmd "m=$(*,1,2,3,4,5,6)")
"720"

(menucmd "m=$(*,6,5,4,3,2,1)")
"720"



    $(/,,,...)
      Theresult of dividing the numberby ,...   is
      returned.
Example:
(menucmd "m=$(/,1,2)")
"0.5"

(menucmd "m=$(/,1,2,3)")
"0.16666667"

(menucmd "m=$(/,0.5,3)")
"0.16666667"

(menucmd "m=$(/,0.5,1,2)")
"0.25"

(menucmd "m=$(/,3,2,1)")
"1.5"

(menucmd "m=$(/,2,1)")
"2"

(menucmd "m=$(/,1,2,3,4,5,6)")
"0.00138889"

(menucmd "m=$(/,6,5,4,3,2,1)")
"0.5"

HasanCAD 发表于 2015-11-4 12:26:57

我只是用这个参考。
页: 1 [2]
查看完整版本: DIESEL: substr右起4个字符