March 23, 2007 at 12:49 pm
I added some custom code to my report to accept a parameter array of any data type and return a comma-delimited string of values.
The Code:
Funtion ParameterList(ByVal Parameter As Object) AS String
Dim sParamItem As Object
Dim sParamVal As String = " "
For Each sParamItem In Parameter
If sParamItem Is Nothing Then Exit For
sParamVal &= sParamItem & ", "
Next
'--Remove last comma & space:
ReturnsParamVal.Substring(0, sParamVal.Length - 2)
End Function
The Error:
When I try running the report it is giving me a: [BC30188] Declaration expected.
I don't claim to be an expert with VB code, is there anyone that can help me?
Thanks in advance.
March 23, 2007 at 1:15 pm
Never mind I'm retarded.. I can't spell function. lol
March 23, 2007 at 1:18 pm
It seems you can : End Function
However you need to speel it right 100% of the thyme .
Thanks for sharing the solution.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply