• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using the New Keyword

The New keyword creates a new instance of an existing object. For example, you might want to display information about several customers, each customer on its own form, so you want each instance of the Customer form to contain the same objects, variables, and code. You might also want to create multiple instances of a form called frmSales; each instance would show information about a different customer.

There are a couple of ways you can use the New keyword. The first way looks like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint