2 programming - darwin/visual basic, Programming - darwin/visual basic -4, Declaration of types, functions, and constants – Yokogawa PC-Based MX100 User Manual

Page 492

Advertising
background image

9-4

IM MX190-01E

9.2

Programming - DARWIN/Visual Basic -

Declaration of Types, Functions, and Constants

To use types, functions, and constants for Visual Basic, they must be declared in
advance. The following methods of declaration statements are available.

Statement of All Declarations

Adding the standard module library file for Visual Basic (DAQDARWIN.bas) to the
project is equivalent to declaring all types, functions, and constants.

Statement of Selective Declarations

The API Viewer that comes with Visual Studio can be used to copy the declaration
statements of arbitrary types, functions, and constants. Load the text file for the API

Viewer (DAQDARWIN.txt) on the API Viewer to use this function.
For a description of how to use the API Viewer, read the operation manual for Visual

Studio.

Writing Declarations Directly

Below is an example of a declaration statement.

Public Declare Function openDARWIN Lib "DAQDARWIN"(ByVal
strAddress As String, ByRef errorCode As Long) As Long

Advertising