Agilent Technologies VEE Pro Guía de usuario Pagina 329

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 602
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 328
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.
Vista de pagina 328
1 2 ... 324 325 326 327 328 329 330 331 332 333 334 ... 601 602

Comentarios a estos manuales

Sin comentarios