Announcement

Collapse
No announcement yet.

SCREEN 7 mode available in PB/DOS?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SCREEN 7 mode available in PB/DOS?

    Hey all,

    Is SCREEN mode 7 available in PB/DOS? Under QBASIC this puts the screen in a 40 column by 25 row mode
    with 16 colors.

    Also:

    How does one convert text from lowercase to uppercase in GWBASIC? GWBASIC is not blessed with UCASE$ and I am trying to convert an old GWBASIC program for use in QBASIC. Do I convert the text first to lowercase and then use a FOR NEXT-LOOP to convert to upper case? What if the user hits CAPS LOCK and types in uppercase? Do I detect for that? What about words that are MuLtY-cAsEd?

    Paul


    Paul


    ------------------
    Few cats act their age, while
    most just cough up furballs.

    [This message has been edited by Paul Panks (edited February 10, 2002).]
    Few cats act their age, while
    most just cough up furballs.

  • #2
    Screen 7 is available on my machine (Dell 566Mhz). I don't know
    what video card it has in it tho. Try it on yours see what
    happens.

    Converting text to upper case "the hard way":

    te$ = ""
    for x = 1 to len(t$)
    h = asc(mid$(t$,x,1))
    if h > 96 and h < 123 then h = h - 32 '97 = "a", 122 = "z"
    te$ = te$ + chr$(h)
    next x

    Cheers
    ------------------


    [This message has been edited by Mel Bishop (edited February 10, 2002).]
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      It compiles fine and runs fine in the IDE, but screen mode 7 produces a 244 error
      when the exact same compiled program is run as an .EXE.

      Paul


      ------------------
      Few cats act their age, while
      most just cough up furballs.
      Few cats act their age, while
      most just cough up furballs.

      Comment


      • #4
        Paul, you have created two topics discussing similar but "very unusual" issues with PB/DOS - as suggested in the other topic, I recommend that you try a reinstall as your problems are "fairly unique"

        On a related subject, what is the date stamp on your PB.EXE file? If you have to reinstall, you may as well make sure you are using the latest version of PB/DOS...

        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected][email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          Okay Paul, I've run some more tests and here's what I found.
          I ran across the 244 error with "Lib All Off". You probably
          have that or other-wise turned off your graphics package. Turn
          your graphics package back on and try it.


          ------------------
          There are no atheists in a fox hole or the morning of a math test.
          If my flag offends you, I'll help you pack.

          Comment


          • #6
            Good point guys... thanks!

            (I did not imagine that Paul would have disabled the EGA graphic library from the EXE... )

            ------------------
            Lance
            PowerBASIC Support
            mailto:[email protected][email protected]</A>
            Lance
            mailto:[email protected]

            Comment

            Working...
            X