I have an argument type mismatch, but I believe all variables are of matching types. Any ideas why this might be occuring?
How the variables are defined in the calling subroutine:
Dim x_small, y_small, x_large, y_large As Double
Dim xmid, ymid As Double
Dim x_adjust, y_adjust As Double
How I call the subroutine (this is the line that returns the errors):
Call drawgrid(x_small, y_small, xmid, ymid, centerx, centery, x_adjust, y_adjust)
The offending subroutine:
Public Sub drawgrid(x_small As Double, y_small As Double, xmid As Double, ymid As Double, _
centerx As Double, centery As Double, x_adjust As Double, y_adjust As Double)
Mainform.scatter.Line (x_small + 0.2, y_small)-(x_small + 0.2, y_large - 0.05)
Mainform.scatter.CurrentX = x_small + 0.1
Mainform.scatter.CurrentY = y_large
tester = g2p((x_small + 0.2), x_adjust)
Mainform.scatter.Print Format(tester, "0.00"
end sub
Note: I am using VB 5 for this project.
Best regards,
Ryan
How the variables are defined in the calling subroutine:
Dim x_small, y_small, x_large, y_large As Double
Dim xmid, ymid As Double
Dim x_adjust, y_adjust As Double
How I call the subroutine (this is the line that returns the errors):
Call drawgrid(x_small, y_small, xmid, ymid, centerx, centery, x_adjust, y_adjust)
The offending subroutine:
Public Sub drawgrid(x_small As Double, y_small As Double, xmid As Double, ymid As Double, _
centerx As Double, centery As Double, x_adjust As Double, y_adjust As Double)
Mainform.scatter.Line (x_small + 0.2, y_small)-(x_small + 0.2, y_large - 0.05)
Mainform.scatter.CurrentX = x_small + 0.1
Mainform.scatter.CurrentY = y_large
tester = g2p((x_small + 0.2), x_adjust)
Mainform.scatter.Print Format(tester, "0.00"
end sub
Note: I am using VB 5 for this project.
Best regards,
Ryan