FABS - Qbasic
#21
(08-11-2022, 05:31 PM)G43 Wrote: sorry it has taken me so long to get back here.  Things have been crazy the last couple of months and i havent had time to get back to it.  Here is where it is called in the program.


1310 CMND$=",Y,2" : GOSUB 56000
    CMND$=",O,PRICHIST.KEY,1" : GOSUB 56000

    OPEN "PRICHIST.DAT" FOR RANDOM ACCESS READ WRITE SHARED AS #7 LEN=61
    FIELD 7, 18 AS LNPT$, 6 AS INV$, 8 AS DAT$, 25 AS NME$, 4 AS QUAN$ : RETURN



'--------------- Main CALL to FASBP ---------------------------
56000    CALL FABSMB(CMND$,ERRF%,RECNO%,ADRKEY%):RECLOW!=RECNO%
56010    IF RECLOW!< 0 THEN RECLOW!=RECLOW!+65536!
CALL FABSMB("X",DUM%,RECNO%,DUM%):RECHI!=RECNO%
IF RECHI!< 0 THEN RECHI!=RECHI!+65536!
RECNO!=RECHI!*65536+RECLOW!
56020    RETURN

If you describe some line of your program that uses the "S" command (search for exact key) or the command "G" (search for part of the key) it could guess which of the data is the key by which they are sorted.

Similar to this...

KEY$="ARTICLE"
CMND$=",S,KEY$,1,1" : GOSUB 56000

IF there is any line in which the "C" command is used, there we can see the type, length and number of keys that the database has and I could write you a small program that will create a new key file because it is Of course the current one is broken.
Reply


Messages In This Thread
FABS - Qbasic - by G43 - 05-25-2022, 01:47 PM
RE: FABS - Qbasic - by JuanjoGomez - 05-26-2022, 12:01 PM
RE: FABS - Qbasic - by G43 - 06-14-2022, 04:50 PM
RE: FABS - Qbasic - by G43 - 06-14-2022, 04:52 PM
RE: FABS - Qbasic - by Pete - 06-14-2022, 05:04 PM
RE: FABS - Qbasic - by G43 - 06-15-2022, 06:47 PM
RE: FABS - Qbasic - by Pete - 06-15-2022, 07:07 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-15-2022, 08:09 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-15-2022, 08:14 PM
RE: FABS - Qbasic - by mnrvovrfc - 08-12-2022, 08:29 AM
RE: FABS - Qbasic - by bplus - 06-15-2022, 08:45 PM
RE: FABS - Qbasic - by JuanjoGomez - 06-16-2022, 10:56 AM
RE: FABS - Qbasic - by JuanjoGomez - 06-16-2022, 07:19 PM
RE: FABS - Qbasic - by G43 - 06-17-2022, 06:18 PM
RE: FABS - Qbasic - by G43 - 08-11-2022, 05:31 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 06:08 PM
RE: FABS - Qbasic - by G43 - 08-11-2022, 05:43 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:58 AM
RE: FABS - Qbasic - by mnrvovrfc - 08-12-2022, 08:41 AM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:49 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-12-2022, 05:52 PM
RE: FABS - Qbasic - by G43 - 08-15-2022, 01:25 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-17-2022, 07:07 AM
RE: FABS - Qbasic - by G43 - 08-17-2022, 01:51 PM
RE: FABS - Qbasic - by JuanjoGomez - 08-17-2022, 02:29 PM
RE: FABS - Qbasic - by TempodiBasic - 10-10-2022, 11:06 AM



Users browsing this thread: 2 Guest(s)