One of the best ways to learn any programming language is to examine code that already exists and try to decipher how the code works. This manual contains a great deal of sample code that you can cut and paste directly into the Visual Basic Editor. The following is a list of the sample scripts included in this manual. You can click on an example title to view the sample code.
Working with iFIX Objects
- Example: Building an Animation Connection through a Script
- Example: Script Using ParseConnectionSource Method
- Example: Script Using GetConnectionInformation Method with IsConnected Method
- Example: Script Using the GetPropertyAttributes Method
- Example: Script Using CanConstruct Method
- Example: Script Using Construct Method
- Example: Script Using ValidateSource Method
- Example: Using Range Comparison
- Example: Using Exact Match Lookup
- Example: Animating the Rotation of an Object
- Example: Rotating a Group Using a Script
Manipulating Pictures
- Example: Creating a Toolbar
- Example: Using an Alias to Open and Close Displays
- Example: Using the ReplacePicture Subroutine
Accessing Real-time Data
- Example: Group Write
- Example: Group Read
- Example: Writes to Alternate Sources
- Example: Using the Database Tag's Value Property
Accessing Data from a Relational Database:
Using ADO
- Example: Creating an ADO Record set
- Example: Populating a Flexgrid with Data from an ADO Record set
- Example: Adding a Record to a Database Using an ADO Recordset
- Example: Updating a Database Using an ADO Record set
- Example: Deleting a Record from a Database Using an ADO Record set
Working in the Run-time Environment
- Example: Changing the Data Source of an Animation Connected to an Object
- Example: Form Code
- Example: Module Code
- Example: iFIX Object Code
Working with the Scheduler
- Example: Checking Disk Space and Triggering an Alarm if Too Low
- Example: Recording DownTime Monitoring
Manipulating Charts
- Example: Scroll Back and Scroll Forward Buttons
- Example: Creating Buttons that Scroll Back and Scroll Forward through Historical Data and Set Current Time
- Example: Using GetPenDataArray to Extract Data from Pen
- Example: SetPenDataArray Method with Hardcoded Values
Working with iFIX Security
- Example: Excerpt from Script which opens the Login Application
- Example: Using the System Object's FixGetUserInfo Method