BBS: Inland Empire Archive Date: 03-13-92 (08:31) Number: 149 From: SCOTT WUNSCH Refer#: NONE To: WARREN MILLER Recvd: NO Subj: Making Libraries Conf: (2) Quik_Bas
WM> I don't want to sound to stupid but how do you make Librarys' a
WM> can you place in them. I have several common routines and funct
WM> that I use, but the command to make libs eludes me. Also how do
WM> use them in code?
While in the QB environment, load the source module that
contains the routines to place in the library. Make sure
there is no "module-level code" (code not in SUBs or
FUNCTIONs) except for DECLARE, DIM, etc., because this code
cannot be accessed when in a library.
Now, pull the Run menu down, and select Make LIB file. This
will bring up a window similar to the one for compiling.
Select any options you need, and then hit <Enter> to proceed.
QB will do everything to create a .QLB and .LIB file.
Any SUB or FUNCTION can go in a library.
> Also is there a standard in terms of code?
>
> I.E. ik$ = (Inkey pressed)
> a$ =
> b$ =
> c$ =
>
> For a common ground, so the next guy knows what is going on at
> glance.
Not usually, except that longer variable names than that are
generally used. This means the variable name itself explains
a bit about what's going on.
-= Scott =-
--- Maximus 2.00
* Origin: The Green Zone - Regina, Sask, Canada (1:140/23)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET