M
Matt
Ok, so I am trying to come up with my own object. I have figured out
that I can create something similar to a struct (Class with no
functions) by using the Type/End Type keywords. I want to also be able
to have functions associated with this class. So I want something like
the following:
*******************************************
Type abc
i as integer
j as integer
public function totalAll()
totalAll = i + j
end function
End Type
*******************************************
Now, obviously this is an extremely simple version of what I am trying
to do, but I cant even get this to work. It falls apart when I add the
totalAll() function to the Type/End Type.
Also, do I need a constructor (when i added Sub()/End Sub I got an
error).
that I can create something similar to a struct (Class with no
functions) by using the Type/End Type keywords. I want to also be able
to have functions associated with this class. So I want something like
the following:
*******************************************
Type abc
i as integer
j as integer
public function totalAll()
totalAll = i + j
end function
End Type
*******************************************
Now, obviously this is an extremely simple version of what I am trying
to do, but I cant even get this to work. It falls apart when I add the
totalAll() function to the Type/End Type.
Also, do I need a constructor (when i added Sub()/End Sub I got an
error).