Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: pebe
  • Order by date
  1. pebe

    printing in quickbasic and windows NT

    It's because QuickBasic is a DOS program and outputs to the printer with characters in ASCII. Printers then used their inbuilt fonts to print out in alpha/numerics. Most (all?) modern printers contain no character fonts - they only handle graphics streams. I had the same problem running...
  2. pebe

    qbasic zip log files program help

    There is a QBasic library called ADVBAS that includes the command 'IF EXIST' That allows you to check if a file exists. You could include that in your loop to get out when there were no more files. You can download it from here as ADVBAS.ZIP http://pages.sbcglobal.net/oasys/dnldfr.htm
  3. pebe

    Scanner problem

    I have a Microtek ScanMaker 3600. Software is ScanWizard 5. Printer is an Epson Stylus Color 600. My problem is when I do a straight copy of an A4 document in standard mode at 100%, the width is printed at 100% but the length is stetched to 103% and text at the bottom of the document is lost...
  4. pebe

    saving a program using put/get

     I believe the main requirements for good programming are that:   1. The program runs as intended - without bugs.   2. The end product is user friendly and foolproof, ie. illegal user responses should have been anticipated and trapped, the printer seen to be ready, etc.   3. The code should be...
  5. pebe

    saving a program using put/get

    Trollacious, I can't agree with your comment about using the same variable with different types. Just because you don't do it, it isn't bad practice! Variables should have meaningful names, and it is a bit pointless to pick up choice$ as an INKEY$ and then change it to boxes% to get its value...
  6. pebe

    how to run programs from a menu that you created in qbasic

    I just wanted to be sure, 'cos this query's not in the Qbasic forum.
  7. pebe

    how to run programs from a menu that you created in qbasic

    Which Basic are you using?
  8. pebe

    Checking the file size and quit if empty

    MiggyD, As the question was raised in this (BASIC:Microsoft) forum so it's not unreasonable to think that the questioner was dealing with one of the Microsoft Basic dialects. Since QBasic predominates - for DOS platforms - it is most likely that the question referred to QBasic. For my part...
  9. pebe

    Checking the file size and quit if empty

    Here's one that should work: CALL check4file(filename$,a%) IF a%=0 THEN END SUB check4file (filename$,a%) f%=FREEFILE OPEN filename$ FOR APPEND AS #f% IF LOF(f%)= 0 THEN a% = 0 ELSE a% = 1 CLOSE #f% IF a% = 0 THEN KILL filename$ END SUB
  10. pebe

    Need a way to speed up QBasic

    Like hardcor said, the printing will slow the operation considerably. You dont really want all those calculations and printing every time through the loop. Use two DO loops. In the first one, start copying bytes and time the number of chars in 1 second to get the transfer rate (BTW, where do...
  11. pebe

    Need a way to speed up QBasic

    Can you post the code in your loop?
  12. pebe

    can't get this to work

    A couple of other points. You are showing Board$(col) which is an array. What it is is not clear but if it IS an array you need to dimension it as an array. In case someone is using lower case on the keyboard, check for upper case equivalent of player$ like this IF UCASE$(player$) =...
  13. pebe

    program question

    You got in 4 lines what you THINK clipjoint was doing. Was the 123 in a single string? an array? or were they separate integers? As he hasn't told you this info, how do you know how to handle them?
  14. pebe

    quikbasic com problem on IBM thinkpad380E

    ClareSnyder, I have written several progs using com ports and they run on anything from Dos to win 98se, so i don't think the OS is your problem. I don't know what you mean by a 'big banger' interface. Do you mean just using I/O? If so, the trouble may be the control wire arrangement. My progs...
  15. pebe

    quikbasic com problem on IBM thinkpad380E

    qbasicking, Can you give a bit more detail about IBM's changes?
  16. pebe

    program question

    Your question is not very clear. Do you mean you want the numbers sorted? There are plenty of easy-to-use sort progs available.
  17. pebe

    I am asking a lot of frequent questions, but...

    Trollacious, You can print to the 25th row if you add a ; at the end of the print line. Otherwise, the screen will scroll up.
  18. pebe

    Game: keyboard input

    If you change the repeat rate in BIOS it works for DOS progs. At least, it does for my old DOS wordprocessor.
  19. pebe

    Opening a QB COM program and it errors...

    I can make two suggestions: 1. Your line 140 has no delay on CS,DS or CD. If the status of those lines is not correct when you open the com port, you will get a timeout error. Setting each to a delay of 1sec may do the trick. 2. As, presumably, you wrote the program, how about putting in a...
  20. pebe

    Printing from DOS

    A friend of mine has recently upgraded to XP Home Edition. He runs a DOS spreadsheet. When attempting to print the results, only part of them are printed. His printer is an Epson Stylus C40SV. Has anyone any suggestions?

Part and Inventory Search

Back
Top