Qbasicnews.com

Full Version: Libary..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Anybody got a tut on how to make your own libary.. I have made some functions that i for now have in bas files that i would like to create a libary with..
You can make this just selecting the proper option in the QB menu. (Make QLB).
Okey.. But how should the bas file look when i make a qlb out of it? All the declare statments and so should be in the bi file, right? And how do i get a lib file and what exactly is a lib file.. I mean what's the diffrence from a qlb file and a lib file?

/Thanks
The LIB file will be created automaticly. QLB is basicly a LIB but with extra stuff the QB IDE needs. In fact, if you are not gonna work with the IDE, the QLB is completely useless.

Any .BAS file will work as a QLB. Add DIM SHAREDs and DECLARES in the main section, and SUBs and FUNCTIONs. The .BI file will be needed by external programs to access the functions inside your library.