5 1 Overview

LANSA Open Guide

5.1 Overview

This Skill File Maintenance program shows you how to use Visual Basic (VB) and LANSA Open to maintain a file residing on the host using a simple VB screen.

 

By following this sample code, you will see how to create an application that allows you to:

  • browse
  • add
  • change and
  • delete items from a host file.

You can cut and paste the code from this program to use in your own VB applications. You will find it in <\lansas>\SAMPLES\VB\SIMPLE.

The Skills File Maintenance program (simple.vbp) contains only one form (simple.frm) and uses the most common LANSA Open DLL calls to update the file SKLTAB.

In Simple.frm, wherever possible, the code is linked to events on the form controls. The Form_Load event is used to open the session, the Form_Unload to close the session and the skills list click event is used to navigate through the records.