Agilent Technologies VEE Pro Guide de l'utilisateur Page 329

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 602
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 328
1 2 ... 324 325 326 327 328 329 330 331 332 333 334 ... 601 602

Commentaires sur ces manuels

Pas de commentaire