I'd like your opinions on this line of code...
VB Code:
'type Boundary is a custom class 'frmViewEditBoundary is a form that returns a Boundary instance Dim temp As Boundary = (New frmViewEditBoundary).ShowDialog()
Is this acceptable coding practice? Or is there a cleaner way to get the same effect.
The code works fine but I'm not sure if its in line with oop practice. I liked it because it saves having to dim the form on a separate line of code. The form is not needed afterwards.
What are your thoughts please?




Reply With Quote