Return Value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Return Value

    Hello all,

    Can anyone help me that how to return the value of Maxindex & Minindex in Array so far i did,

    Code:
                ASSIGN/W1=DIM_1A.DEV  (0.0011)
                ASSIGN/W2=DIM_1B.DEV  (0.0010)
                ASSIGN/W3=DIM_1C.DEV  (0.0011)
                ASSIGN/W4=DIM_1D.DEV  (0.0012)
                ASSIGN/WID_ARRAY=ARRAY(W1,W2,W3,W4)  (0.0011 0.0010 0.0011 0.0012) 
                ASSIGN/MAX_VAL=MAXINDEX(WID_ARRAY)   (4)
                ASSIGN/MIN_VAL=MININDEX(WID_ARRAY)  (2)
                ASSIGN/WID_DIFF=MAX_VAL-MIN_VAL
    now its Returning only the Position Value....
    Last edited by Thiyagu_Raj; 06-02-2019, 11:33 PM.

  • #2
    Code:
    assign/wid_diff=wid_array[max_val]-wid_array[min_val]
    PC-DMIS CAD++ 2o19 R1 SP10

    Comment


    • #3
      Or directly :
      ASSIGN/WID_DIFF=MAX(WID_ARRAY)-MIN(WID_ARRAY) if you don't mind the position...

      Comment


      • #4
        Thank you vpt.se , JEFMAN


        here is my result, which displays in Report


        Capture.PNG
        Last edited by Thiyagu_Raj; 06-03-2019, 07:57 AM.

        Comment

        Related Topics

        Collapse

        Working...
        X