home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
BASIC
/
POWBASIC
/
LIBRARY1
/
EXAMP2.ZIP
/
PB091790
< prev
next >
Wrap
Text File
|
1990-09-17
|
10KB
|
318 lines
all
H#: 65712 S12/SPECTRA Publishing
15-Sep-90 00:27:46
Sb: #65539-Peace and Quiet !
Fm: Richard Kanarek 72371,111
To: John Watts 73760,751 (X)
Challenge accepted! Check you e-mail!
Cordially, Richard
Press <CR> for next or type CHOICES !
H#: 65885 S12/SPECTRA Publishing
16-Sep-90 12:43:32
Sb: #aplib error & update
Fm: Howard Ballinger 71121,776
To: 75300,214 (X)
Barry:
Thanks for looking over my files and for the tip. I removed all the STATIC
arrays (I guess if it slows the menu routines down any, I can't tell !!) and am
re-uploading it all as TEMP.ZIP. Please rename it as APLIB.ZIP and replace the
old version in the library with it. I also swatted an old bug in SUB
ENTERSTRING () and made a couple of minor improvements.
(What Barry advised me by EMail was that PB v. 2.10 won't accept STATIC arrays
as PUBLIC -- and rightly so 'cause the units mostly don't know what to do with
them !!)
-- Howard
There is 1 Reply.
Press <CR> for next or type CHOICES !
H#: 65896 S12/SPECTRA Publishing
16-Sep-90 14:20:23
Sb: #65885-#aplib error & update
Fm: Barry Erick for Spectra 75300,214
To: Howard Ballinger 71121,776 (X)
Will do, but you could upload it as aplib.zip and just tell cis, when it asks,
to replace the old file. Also, if you use Tapcis, there is a great sharware
program called TapUpp that makes uploading files as easy as using tapcis.
--- Barry
There is 1 Reply.
Press <CR> for next or type CHOICES !
H#: 65925 S12/SPECTRA Publishing
16-Sep-90 18:28:41
Sb: #65896-#aplib error & update
Fm: John Watts 73760,751
To: Barry Erick for Spectra 75300,214 (X)
Barry,
TapUpp?..... Sounds just like what I need. Where is it located? What
FORUM LIB??? Also take a look at RATS.ZIP.... sent it Friday.
Keep Tapping
John
There is 1 Reply.
Press <CR> for next or type CHOICES !
H#: 65932 S12/SPECTRA Publishing
16-Sep-90 19:49:34
Sb: #65925-aplib error & update
Fm: Barry Erick for Spectra 75300,214
To: John Watts 73760,751
John,
TapUp4.exe is the file and is in Lib 2 of the Tapcis library. G Tapcis for it.
I did release rats today.. good work.
--- barry
Press <CR> for next or type CHOICES !
H#: 65887 S12/SPECTRA Publishing
16-Sep-90 12:47:43
Sb: #Strange Error!
Fm: Howard Ballinger 71121,776
To: 75300,214 (X)
Barry --
OOPS! I have a new problem.
As I mentioned, the versions of the high/low database tools I have now link and
operate perfectly with my little database demo (and best of all, it compiles &
links in 11 sec. on my XT -- I compare that with what it used to take when the
toolbox was $INCLUDED and had to be recompiled every time!) But as I try to do
the same thing to a little longer file -- well, a lot longer -- something very
odd happens. The compiler's second pass stops with an error it flags as Error
462, undefined SUB, locating the cursor just before the first line of code in
GETKEY.BOX, which is an include file inside of DBHI-U.BAS; and that's not even
what I'm trying to compile (the unit itself compiles fine and still links to
the smaller main file and works
).
I just went off and tried adding a segment break even tho' the compiler didn't
say it needed one -- cuz the program is pretty big now. But no! Didn't affect a
thing. I checked up & down the file (looking at the previous INCLUDE file too)
and found nothing suspicious.
Any guesses ??
-- Howard
There is 1 Reply.
Press <CR> for next or type CHOICES !H#: 65897 S12/SPECTRA Publishing
16-Sep-90 14:20:29
Sb: #65887-#Strange Error!
Fm: Barry Erick for Spectra 75300,214
To: Howard Ballinger 71121,776 (X)
You have the $Include called from within the PBU? If you are using a pbu, all
subs must be public.
You may be able to tell, I do not fully understand your problem.
-- Barry
There is 1 Reply.
Press <CR> for next or type CHOICES !
H#: 65963 S12/SPECTRA Publishing
16-Sep-90 23:31:18
Sb: #65897-#Strange Error!
Fm: Howard Ballinger 71121,776
To: Barry Erick for Spectra 75300,214
Barry --
That's a thought -- I did look for a non-PUBLIC SUB in the unit. But even at
that, why would the unit work perfectly fine with a different main file
(because first I created a version of DUPS.BAS -- from the Borland forum
sysops -- to test the database toolbox files, and it is thoroughly debugged
already) and fail in this bigger file in which I'm using, to the best of my
knowledge, exactly the same toolbox calls ... ???
The problem is that the cursor lands on a blank line within the code of a PBU
(dblow.pbu to be specific). It doesn't point to any kind of SUB or function
call at all, not even close to one. But it says 462, SUB not found.
And then I thought, since dblow.bas is mostly just a list of "INCLUDE"
statements, and our blank line IS within an included .BOX file, maybe it was
trying to point to something and missed.
Does this ring any bells with anyone ?? How can I try to track it down.
There is 1 Reply.
Press <CR> for next or type CHOICES !
H#: 65978 S12/SPECTRA Publishing
17-Sep-90 05:01:46
Sb: #65963-Strange Error!
Fm: Mike Burns 71551,1353
To: Howard Ballinger 71121,776
Howard,
Check the same line number in your main file. Sometimes,
I can get your problem in a large file. An internal line
counter seems to get lost somewhere. Usually I can find
the error in the main program. Or I have not put in a
DECLARE statement in the pbu for a function (such as
funcFileExists% in the stuff I sent you).
Mike
Press <CR> for next or type CHOICES !
H#: 65889 S12/SPECTRA Publishing
16-Sep-90 12:50:52
Sb: #Toolkit revisions
Fm: Howard Ballinger 71121,776
To: 71551,1353 (X)
Mike --
RADICAL !! Your fixes to the High- & Low-Level database toolbox files work
great -- I just resurrected an old testbed file and wrote in the $LINKS, made a
few other modernizations and it's a wrap!
The only additional change I'd suggest is in ACCESS.BOX, set dbFirstFileNo =
FREEFILE. That way, if we a l w a y s use FREEFILE to get a good file number
to use in OPEN statements, we'll never have conflicts.
I don't care for the code skeleton from the manual for opening or creating the
database files, and I'm going to show how I do it in another message. My
working EXE files don't include dbCreate () at all -- the LAST thing I want
them to do is go ahead and initialize new datafiles or somehow trash the
existing ones! If a database manger can't find its data, it should just exit. I
use a separate little prog for one-time use to do the file creation.
See you in the next msg -- H.
There are 2 Replies.
Press <CR> for next or type CHOICES !
H#: 65890 S12/SPECTRA Publishing
16-Sep-90 12:52:49
Sb: #65889-Toolkit revisions
Fm: Howard Ballinger 71121,776
To: Howard Ballinger 71121,776 (X)
This is the code I use to open the toolbox database files. I have already
$INCLUDEd the high & low level PBU's as modified on Mike's suggestions, as well
as the APLIB files (EXIST () is a function therein.)
.
.
MaxFilesVal = 4
CALL dbInit (MaxFilesVal)
GOSUB OpenEmployerFiles
GOSUB StructureFields ' (which contains the FIELD statements)
.
. rest of program ...
. OpenEmployerFiles:
IF NOT EXIST ("EMPLOYRS.DF") THEN PRINT "File not found: EMPLOYRS.DF": STOP
IF NOT EXIST ("EMPLOYRS.KF") THEN PRINT "File not found: EMPLOYRS.KF": STOP
IF NOT EXIST ("EMPLNMBR.KF") THEN PRINT "File not found: EMPLNMBR.KF": STOP
INCR LastFileNum: MainDSet% = LastFileNum
CALL dbOpen(MainDSet%, MainFile%,"EMPLOYRS.KF", Dummy1, Dummy2)
IF dbStatus THEN ERROR dbStatus
INCR LastFileNum: NumKyDSet% = LastFileNum
CALL OpenIndex(NumKyDSet%, "EMPLNMBR.KF", Dummy1, Dummy$, Dummy2, Dummy3)
IF dbStatus THEN ERROR dbStatus
CALL ClearKey(MainDSet%): CALL ClearKey(NumKyDSet%)
RETURN
.
Much simpler, don't ya think ??
-- Howard
Press <CR> for next or type CHOICES !
H#: 65918 S12/SPECTRA Publishing
16-Sep-90 17:36:14
Sb: #65889-Toolkit revisions
Fm: Mike Burns 71551,1353
To: Howard Ballinger 71121,776 (X)
Howard,
Using FREEFILE to assign file numbers is the best way,
I just haven't gotten around to changing all me programs
at this point. I allow the users to create new files
automatically so they don't call me and ask how to do it.
The toolbox create routines check for the file before it
tries to create the new files, so the risk is minimal.
Some changes I would like to see in a "new" database
toolbox are:
1) Variable Length records.
2) Checkpointing
3) Multiple indexes stored with data (data + indexes = 1 file)
4) Ascending/Descending Keys
5) Auto reclamation of deleted records
Glad you got it working ... Mike
Press <CR> for next or type CHOICES !
H#: 65985 S12/SPECTRA Publishing
17-Sep-90 06:09:18
Sb: Make Utility
Fm: AL MUSELLA 76114,637
To: All
Hello,
I just uploaded the source code for a Make Utility to our library.
This utility compares the date and time stamp of the .PBU to the source .BAS
files of a project and recompilies them if needed.
This is a free utility!
Also included in the source code is routines to access the date and time
stamp of a file from DOS.
One problem: I don't have access to a monochrome system, so if anyone who has
downloads it, let me know how it works, and what changes should be made to the
color statements.
Al
Press <CR> for next or type CHOICES !
HPC Vendor B ForumHSections Menu
Section names (#subjs/# msgs)
1 Quarterdeck (58/129)
2 Primavera Systems (5/5)
3 Korenthal Assocs. (4/10)
4 Personics Corp. (20/59)
5 Quicksoft (2/2)
6 TurboPower Software (30/94)
7 ChipSoft, Inc. (1/6)
8 DacEasy (5/9)
10 J.P. Software (25/86)
11 PDC Prolog (1/1)
12 SPECTRA Publishing (5/13)
HEnter choice(s) or ALL !