Error 118: Procedure or function variable expected The variable must be a procedural-type variable. Check to see that you followed the correct syntax for declaring and typing variables within a parameter list. Remember that returned variables require the VAR keyword.