| iMatix home page
| Libero home page | Libero documentation
| << | < | > | >>
Libero Libero
Version 2.32

 

The MS Visual Basic Language

Overview

What Is Visual Basic?
Visual Basic (VB) is Microsoft's rapid application development language. It is the standard scripting language for MS applications such as Word and Excel.
Portability
None.
Pros and Cons
Pros: easy to use and widely used; lots of support from third-party add-ons; interpreted language. Cons: slow screen updates; interpreted language.
How To Get It
Buy it from your local software shoppe.
Libero Supports
MS Visual Basic 3.0. Not tested with 4.0, but probably will work unchanged.

Working With Visual Basic

Example of code

Code fragments:

'
'****************   MODULE FUNCTION NAME   *****************
'
Private Sub module_function_name ()

End Sub

Private Sub private_function_name (argument,...)
    the_next_event = ok_event
    exception_raised = True
    the_exception_event = error_event
}

A fuller example.

Notes

  1. Since there is no way to distinguish module functions from private functions, the schema turns-off idle module checking.
  2. The .int code file is the dialog interpreter. You have to include both the .bas and .int files in your project. I make the split into two files so that you are not faced with the generated code when you edit the .bas source file.
  3. The .int interpreter calls the .bas source file via a dispatcher function. This function (which is generated) calls a particular module and returns event information. This is not particularly fast, but works okay.
  4. All functions are private; this allows several Liberated programs in the same VB application.
  5. VB sorts functions in a source file into alphabetical order; I called the dispatcher 'ZzDis_...' to ensure that it comes at the end. This is just for cosmetic reasons. If for some reason the dispatcher function comes somewhere in the middle of the source, everything will still work okay. (I have at least one source file where VB did not arrange the functions correctly.)

Specific Schema Options


| << | < | > | >>
| Libero's Languages | The Awk Language | The C Language | The C++ Language | The COBOL Language | The GNU Borne-Again Shell Language | The Java Language | The Microsoft Setup Basic Language | The MS Visual Basic Language | The Perl Language | The Rexx Language | The UNIX C Shell Language | The UNIX Bourne Shell Language | The UNIX Korn Shell Language | The 80x86 Assembler Language
iMatix
Copyright © 1996-97 iMatix