User`s guide
Using .NET with VEE 7
VEE User’s Guide 301
Calling a Shared/Static Method
When you call a .NET member, if the member is
Shared/Static, the word STATIC appears in the Function &
Object Browser description box. Static methods are called on
a .NET class directly, not on an object. Thus, you do not
need to create a .NET object first. Figure 171 illustrates an
example.
Figure 171 Static Method without Namespace Imported
If you imported the namespace System.IO, the above formula
template looks like Figure 172:
Figure 172 Static Method with an Imported Namespace
.NET Programming Tips
• If you are calling a .NET method requiring a certain
numeric data type where the parameter comes from an
input pin, say 'A', you can often eliminate a 'Method Not
Found' exception by simply double- clicking the input pin
A, and setting the required type to match. This is easier
than calling the built- in asClrType function or the .NET
System.Convert.To* functions.