User`s guide

Using .NET with VEE 7
VEE User’s Guide 287
Browser to get yourself familiarized with the syntax. See
“Lab 7- 2: Using .NET to Perform DateTime Operations" on
page 305 for an example.
2 Instance object variables are generated with the first
letter in lower case. This is a clue to you that you are
calling a method or property on an instance member of
an object. This also means that you need to create a .NET
object.
3 To create a .NET object, select a Constructor (constructors
and methods share this icon
) in the member list. As
in the previous graphic, the Create Instance button is
available. Selecting this button generates a formula
template for creating a new .NET object. Note the
dateTime output pin in
Figure 166 that is generated by
VEE. You may connect this output pin to the input pin of
any formula box that requires this .NET object as input.
See
“Lab 7- 3: Using .NET to Get File Information" on
page 309 for an example.
.
Figure 166 Creating a .NET Object
4 The Enumerations ( ) in .NET are strongly typed, so
you can no longer substitute an integer constant for an
Enum like you did with ActiveX objects. You have to enter
the full Enum name (minus the namespace if you have
imported it) or use the Create Formula button and save
yourself some typing. For examples, see Enum related
examples in the examples\dotnet directory.