This is my first function in Visual and I'm having a simple syntax
syntax issue that I'm hoping someone can help correct for me.
I have a function
Public Function Sub_Agg_Embedde d_Catgeories(Pa ss_Report_Type_ Desc As
String, other variables, ....) As Integer
I call it with the statement
intReturn = Sub_Agg_Embedde d_Gender(Pass_R eport_Type_Desc , other
variables)
when the function has completed, I want to Return a variable which is
called Sum_Points and have it assigned to intReturn.
Seems simple enough... At the end of the function I place
Return(Sum_Poin t) or Return Sum_Points ... and I get a syntax error of
"Expected end of statement"
What is the proper syntax for returning a single Integer to the
calling function in Visual?
Thanks in advance for your help.
BlueDolphin
syntax issue that I'm hoping someone can help correct for me.
I have a function
Public Function Sub_Agg_Embedde d_Catgeories(Pa ss_Report_Type_ Desc As
String, other variables, ....) As Integer
I call it with the statement
intReturn = Sub_Agg_Embedde d_Gender(Pass_R eport_Type_Desc , other
variables)
when the function has completed, I want to Return a variable which is
called Sum_Points and have it assigned to intReturn.
Seems simple enough... At the end of the function I place
Return(Sum_Poin t) or Return Sum_Points ... and I get a syntax error of
"Expected end of statement"
What is the proper syntax for returning a single Integer to the
calling function in Visual?
Thanks in advance for your help.
BlueDolphin
Comment