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

Comments

  • gpigpi
    edited 1:42AM
    What type of script (Pascal, C, Basic, Java) do you use?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.