HI
I’am trying to make calculation in my Flex 205 using script function. I have tags declare in the Ewon and using ONCHANGE “Deverse_06_St_Joseph”,"@Conv_06_ST_Joseph()"
but nothing appear to work. I need to return the value, Cumul_06_St_Joseph@ and Temp_06_St_Joseph@. Could you help me and Thank’s for the help
ONCHANGE “Deverse_06_St_Joseph”,"@Conv_06_ST_Joseph()"
FUNCTION Conv_06_ST_Joseph()
A% = Deverse_06_St_Joseph@
IF A% = 1 THEN
// Get Time value
A_Day$ = TIME$
A_Count% = A_Count% + A%
// Convert String Date To Interger
A_Conv% = FCNV A_Day$,40
ELSE
IF A% = 0 THEN
A_Day_Off$ = TIME$
A_Conv_2% = FCNV A_Day_Off$,40
A_TOTAL% = A_Conv_2% - A_Conv%
ENDIF
ENDIF
A_Cumul% = A_Cumul% + A_Total%
A_Float = A_Cumul%/60
Cumul_06_St_Joseph@ = A_Count%
Temp_06_St_Joseph@ = A_Float
ENDFN