Back to Index |

Imports

After you have referenced a new external .NET component, you need to add a line to the Imports so that you can directly reference the classes in the component. The Imports statements imports the names of entities into a source file (in this case the job program), allowing the names to be referenced without qualification.

Simply enter the Imports statement along with the component and relevant namespace declaration.

Click OK.

More on why the Imports statement is used:

Say you have a component named MyCompany and in it is a namespace called MyFunctions and in the namespace you have a class called FavoriteFunctions. If you did not include the Imports statement you would have to reference the class using the fully qualified name:

Dim obj = New MyCompany.MyFunctions.FavoriteFunctions()

However, because you use the Import statement you can now reference your class without the qualification:

Dim obj = New FavoriteFunctions()

© 2003 - 2007 Relational Solutions, Inc. - All rights reserved