Help with error 'FUNCTION' expected
Can someone please help me?
I get an error 'FUNCTION' expected using the code below, but don't know how to resolve it.
Thanks in advance!!
Function getVCTime
VCTime = ""
If <ST047."VCInd"> = 0 Then
Return VCTime + " "
End If
If <ST047."ExtOperInd"> = True Then
Return VCTime + " "
End If
If <ST047."PlanningBasedOnType"> = "1" then VCTime = FloatToStr (<ST047."VCMachTime">)
End If
If <ST047."PlanningBasedOnType"> = "2" then VCTime = FloatToStr (<ST047."VCOccTime">)
End if
Return VCTime
End Function
I get an error 'FUNCTION' expected using the code below, but don't know how to resolve it.
Thanks in advance!!
Function getVCTime
VCTime = ""
If <ST047."VCInd"> = 0 Then
Return VCTime + " "
End If
If <ST047."ExtOperInd"> = True Then
Return VCTime + " "
End If
If <ST047."PlanningBasedOnType"> = "1" then VCTime = FloatToStr (<ST047."VCMachTime">)
End If
If <ST047."PlanningBasedOnType"> = "2" then VCTime = FloatToStr (<ST047."VCOccTime">)
End if
Return VCTime
End Function
Comments