C1018: Not r-value

Top  Previous  Next

Description:

Assignment statements must contain a value on right side of the equal sign (called an r-value). This error occurs when an expression on the right side of such a statement does not return a value.

Example:

 

sub sub1

end sub

x = sub1 ' error C1018: subroutine cannot be on the right of '='