Gobc
10-02-2008, 12:22 AM
if i define the following method for a class object Matrix, that I created
Public Sub AddPlane(row As Integer, p As Plane)
I get a syntax error when I try to use the following code:
someMatrix.addPlane(0,somePlane)
If hypothetically i change my method so it only has one argument
Public Sub AddPlane(row As Integer)
then calling it
someMatrix.addPlane(0)
will work.
Can anybody explain why creating a method with 2 arguments isn't callable?
Thanks
Public Sub AddPlane(row As Integer, p As Plane)
I get a syntax error when I try to use the following code:
someMatrix.addPlane(0,somePlane)
If hypothetically i change my method so it only has one argument
Public Sub AddPlane(row As Integer)
then calling it
someMatrix.addPlane(0)
will work.
Can anybody explain why creating a method with 2 arguments isn't callable?
Thanks