I am working on an application I am facing an issue below is the error and the code
[rsCompilerErrorInCode] There is an error on line 12 of custom code: [BC30205] End of statement expected using rdl VBA
<Code>
Function SetLocationValue(locationId as Integer, allLoc as Integer) As String
Dim ret as String = ""
if allLoc = 1 Then
ret = "<root Selected="all"/>"
else
ret = "<root Selected="list"><id> CStr(locationId) </id></root>"
End If
return ret
End Function
<!---SET DEPARTMENT-->
Function SetDepartmentValue(deptId As Integer, allDept As Integer) As String
Dim ret as String = ""
if allDept = 1 Then
ret = "<root Selected="all"/>"
else
ret = "<root Selected="list"><id> CStr(deptId) </id></root>"
End if
return ret
End Function
<!---END-->
</Code>