[Assembly] gives "Type 'Assembly' not defined" error

  • Thread starter Thread starter PKuhne
  • Start date Start date
P

PKuhne

When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] = [Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?
TIA
 
Hi,

Add Imports System.Reflection to the top of your file.

Ken
--------------
When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] = [Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?
TIA
 
PKuhne said:
When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] =
[Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?

Either import the 'System.Reflection' namespace or fully qualify the class
name:

\\\
Imports System.Reflection
..
..
..
Dim a As [Assembly] = ...
///

- or -

\\\
Dim a As System.Reflection.Assembly = ...
///
 
Back
Top