Basic4ppc libraries reference

◄   Previous page         Table of Contents          Next page 

Basic4ppc  Home  |  Forum

 

Getting help with a library

 

Getting help about a specific object/property

- Using a library encounters a new problem: getting help about the objects included in it, their subs and methods and the way to work with them. This part describes the commons solutions.

 

The first thing to look for is the help file, usually associated with a library. If you write your own library, make sure you supply decent documentation. Basic4ppc lists all libraries help files in its help menu, when found under the libraries folder:

 

Orientation in a library's help file

The convention about library's help file declares the following structure:

1. A help chapter is dedicated to each object in the library.

2. The first topic under each chapter is an overview about the object.

3. A help topic is dedicated, separately, for each property, method, sub and variable under each object.

 

The following picture illustrates this structure using the ControlEx library.

 

 

Working with the object you have created

When an object is instantiated, you can start using it just as you would have used any other Basic4ppc component. Note that if you add an object using the AddObject keyword, Basic4ppc will not display a list of properties after you type the new object's name and a period (.). This is a good reason to always use the Tools menu - Add Object option. Objects added this way will be much easier to deal with, especially when dealing with libraries, that present new objects you may not be familiar with. The following picture shows the AutoComplete feature and demonstrates the help it had supplied when the examples in this reference were built:

Finding out which objects are included in a library

The easiest way to find out which objects are included in a library, apart from reading the help file, is looking at the Tools menu, under the Add Object sub-menu. After adding a library, you will find there a list of all available objects, as seen in the picture below:

 

Go to the next page and learn about the difference between internal and external controls.

Basic4ppc libraries reference

◄   Previous page         Table of Contents          Next page 

Basic4ppc  Home  |  Forum