Posted Saturday, June 06, 2009 7:56 PM
|
|
|
|
I've been programming for forty years (FORTRAN, COBOL, BASIC) but am a total Noob when it comes to OOP. So far this is what I have Imports Bluebit.MatrixLibraryPublic Class Form1 Dim A As Matrix Dim B As New Matrix(40, 40) A = B.SubMatrix(0, 20, 0, 20) End Class
I get a "Declaration Required" error on the 6th line (A=....) What am I doing wrong?
|
|
Posted Monday, June 08, 2009 4:53 AM
|
|
|
|
| Hello, You can either use this syntax: Imports Bluebit.MatrixLibrary Public Class Form1
Dim B As New Matrix(40, 40) Dim A = B.SubMatrix(0, 20, 0, 20) End Class
or something like this: Imports System Imports Bluebit.MatrixLibrary Public Class Form1 Dim A As Matrix Dim B As Matrix
Public Sub DoSomething() B = New Matrix(40, 40) A = B.SubMatrix(0, 20, 0, 20) End Sub End Class
Trifon Triantafillidis | Lead Developer |
|
|
|
|
|