home *** CD-ROM | disk | FTP | other *** search
- all
- H#: 61778 S12/SPECTRA Publishing
- 21-Aug-90 19:07:43
- Sb: #61192-#PowerBASIC News -- #3
- Fm: John Gessner 71131,3256
- To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
-
- I downloaded patch3.zip, unziped it to defseg.bas and used pbpatch to install
- it. GOT Patch Data error 2001 in FUNCTION CURDEFSEG%. The file looks like a
- simple ASCII file. Am I doing something wrong?
-
-
-
- There is 1 Reply.
-
- Press <CR> for next or type CHOICES !
- H#: 61826 S12/SPECTRA Publishing
- 22-Aug-90 04:45:31
- Sb: #61778-#PowerBASIC News -- #3
- Fm: Barry Erick for Spectra 75300,214
- To: John Gessner 71131,3256
-
- You have to use pbpatch.exe from patch1 and apply it to pb.exe and pbc.exe.
- Nothing else. Be sure that the patch exe program, and pb.exe and pbc.exe are
- all in the same directory and let pbpatch3 be unzipped to its own name. If it
- looks like something else than a file full of rems and data, then you actually
- downloaded another file and named it patch3.zip.
- -- Barry
-
-
-
-
- There is 1 Reply.
-
- Press <CR> for next or type CHOICES !
- H#: 61853 S12/SPECTRA Publishing
- 22-Aug-90 07:04:58
- Sb: #61826-PowerBASIC News -- #3
- Fm: Bob Zale: PowerBASIC R&D 76304,1303
- To: Barry Erick for Spectra 75300,214
-
- John --
- I think you somehow got the wrong file when you downloaded. Perhaps you
- could try it again, as Barry suggested. When you unzip it, you should have
- only a README file, and the patch data file PB081590.PAT (actually, i"m not
- sure of the numbers in that name, but it should be of the form: PB??????.PAT).
- If you still have a problem, let us know and we'll get it to you on disk.
- Thanks!
- Bob Zale (PowerBASIC R&D)
-
- Press <CR> for next or type CHOICES !
- H#: 61785 S12/SPECTRA Publishing
- 21-Aug-90 19:27:38
- Sb: #61504-PB PATCH3
- Fm: Jim Underwood 76064,3444
- To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
-
-
- Bob...
-
- Thanks for the reply. I also tried your PBplus96. Worked very nice.
-
- Keep up the good work.
-
- Jim
-
-
-
- Press <CR> for next or type CHOICES !
- H#: 61792 S12/SPECTRA Publishing
- 21-Aug-90 19:52:02
- Sb: #61684-#EXTERNAL STATEMENT
- Fm: Dan Robins 70007,3264
- To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
-
- Bob,
- Boy..oh..boy...what a hard decision to make.
- I would like the convenience of the name being the same...but also, like the
- idea of keeping the size and speed at the best effeciency. So my vote would be
- to keep it the way it is....BUT...on the other hand....an explanation of this
- in the manual would have been handy...instead of spending an hour figuring out
- why in the heck we would get the error (knowing that VARIABLES/SUB NAME were
- not repeated).
- Now...a second question.
- I want to load a DYNAMIC string array (ie..DAN$(10)) which will read info
- from a file...and lets say I want to load those 10 strings 200 times (actually
- reading it off a disk file)....then I want to load it into a flexstring which
- will go up to 2000 (200x10). How do you get the flexstring to take the info
- from a regular string (ie....FLEXER$$(counter%)=DAN$(5)....keeping in mind that
- the flex string was declared properly with DIM & MAP).
- When I try this and then try to PRINT FLEXER$$(counter%) it prints up
- blank. Maybe I'm missing out somewhere or did something stupid...but I couldn't
- get it to fly this afternoon.
- Dan
-
- There are 2 Replies.
-
- Press <CR> for next or type CHOICES !
- H#: 61827 S12/SPECTRA Publishing
- 22-Aug-90 04:45:35
- Sb: #61792-EXTERNAL STATEMENT
- Fm: Barry Erick for Spectra 75300,214
- To: Dan Robins 70007,3264
-
- Dan,
- That's what pbnews is for.. to pass things on to you that may not be clear in
- the manual. The variable names conflict is in there.
- --Barry
-
-
-
-
- Press <CR> for next or type CHOICES !
- H#: 61851 S12/SPECTRA Publishing
- 22-Aug-90 06:59:03
- Sb: #61792-EXTERNAL STATEMENT
- Fm: Bob Zale: PowerBASIC R&D 76304,1303
- To: Dan Robins 70007,3264
-
- Dan --
- You can assign values to flex strings just as you do to ordinary strings. No
- difference at all, except that PB pads the value to the right with blanks. Of
- course, you must DIM and MAP the flex array before the assignment, not after.
- Both DIM and MAP set flex values to all blanks. If you are still having a
- problem, can you give us an actual small program which fails? I'm sure we can
- get it to "fly" for you. Thanks!
- Bob
-
- Press <CR> for next or type CHOICES !
- H#: 61772 S12/SPECTRA Publishing
- 21-Aug-90 18:30:31
- Sb: #PBU AND DATA
- Fm: George Green 70565,276
- To: [F] Spectra 75300,214 (X)
-
- Perhaps you can tell me what's going on with the PBU file. One of the subs I
- converted over to UNIT has a dozen or so data statements each with seven
- strings to be read. The code below isn't the exact code I use, but it shows the
- same problem.
-
- First the main program:
- _______________________________________________________________
- CLS
- $LINK "BTEST.PBU"
- PUBLIC TEST
- DECLARE SUB CTEST ()
-
- DO
- INPUT TEST
- CALL CTEST
- LOOP
- ________________________________________________________________
-
- Then the linked file, BTEST.PBU ...
- ________________________________________________________________
-
- EXTERNAL TEST
- SUB CTEST PUBLIC
- SELECT CASE TEST
- CASE 1
- RESTORE ONE
- CASE 2
- RESTORE TWO
- CASE 3
- RESTORE THREE
- CASE 4
- RESTORE FOUR
- CASE 5
- RESTORE FIVE
- CASE 6
- RESTORE SIX
- CASE ELSE
- RESTORE SEVEN
- END SELECT
- READ A$,B$,C$,D$,E$,F$,G$
- ?A$B$C$D$E$F$
- EXIT SUB
-
- ONE:
- DATA ABCDEFGHIJKLMNOP, QRSTUVWXYZABC, DEFGHIJKLMNOP, QRSTUVWXYZABCD,
- EFGHIJKLMNOQRST, UVWXYZABCDEF, GHIJKLMNOPQ
-
- TWO:
- DATA ---- the data statements under TWO through SEVEN are the same as
- under ONE for this example ------
- .
- .
- .
- SEVEN:
- DATA -- ditto --
-
- END SUB
- ________________________________________
-
-
- When this is run, ANY VALUE OVER 5 for the variable TEST gives an or puts
- garbage in the strings.
-
- On the other hand, when this same routine is run directly or as a CALL not in a
- unit, it works fine. Also, if I make the strings in the data statements
- shorter, it works as a UNIT. The actual programs reads large numbers rather
- than strings and this is just a sample I whipped-up to show my problem, but I
- get exactly the same error with this sample.
-
- Any idea what's going on???
-
- -George Green
-
-
-
- There is 1 Reply.
-
- Press <CR> for next or type CHOICES !
- H#: 61857 S12/SPECTRA Publishing
- 22-Aug-90 07:26:31
- Sb: #61772-#PBU AND DATA
- Fm: Bob Zale: PowerBASIC R&D 76304,1303
- To: George Green 70565,276 (X)
-
- George --
- I'm looking into the problem you're experiencing now. We'll get back to you
- as soon as we find something out. Thanks VERY MUCH for your help on this.
- Really appreciated!
- Bob Zale (PowerBASIC R&D)
-
- There is 1 Reply.
-
- Press <CR> for next or type CHOICES !
- H#: 61876 S12/SPECTRA Publishing
- 22-Aug-90 10:37:42
- Sb: #61857-PBU AND DATA
- Fm: George Green 70565,276
- To: Bob Zale: PowerBASIC R&D 76304,1303 (X)
-
- Thanks Bob, hope you find the problem. For now I've worked around the problem
- because I'm late getting an upgrade out.
-
- -George
-