Results 1 to 4 of 4

Thread: Is this OK?

Threaded View

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Is this OK?

    I'd like your opinions on this line of code...

    VB Code:
    1. 'type Boundary is a custom class
    2. 'frmViewEditBoundary is a form that returns a Boundary instance
    3.  
    4. 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?
    Last edited by wossname; Apr 23rd, 2004 at 05:22 AM.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width