Announcement

Collapse
No announcement yet.

Very little problem (I think!)

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

  • Very little problem (I think!)

    This i smy code:

    Code:
    #COMPILE EXE
    #DIM ALL
    #BREAK ON
    
    FUNCTION PBMAIN () AS LONG
        PRINT "Result..................: è"
        WAITKEY$
    END FUNCTION
    What I see in the console is in the attached image.
    I think is a very little problem, but I can't solve it.
    (Today is my birthday (45), do you think I'm becoming too old for the job?)

    Thank you.
    Attached Files

  • #2
    Have you tried a different character set for your console window settings?
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #3
      Happy Birthday Emanuele.

      I am 69 but still feel young and I learn new things every day.

      What is your CODE PAGE ?
      Last edited by Guy Dombrowski; 17 Jul 2009, 07:33 AM.
      Old QB45 Programmer

      Comment


      • #4
        The problem is not on all PC

        I had this problem only on a single PC, with others all is ok.
        I'm using codepage 850, i tried to change it but the problem
        remain.
        May be somethings is wrong on my PC settings.
        Going to try..
        Thanks.

        Comment


        • #5
          Emanuele:

          First is first: Happy birthday!

          If possible, you can use the ASCII code instead (138), for the grave accented "e".

          Regards,

          Code:
           
          #COMPILE EXE
          #DIM ALL
          #BREAK ON
          
          FUNCTION PBMAIN () AS LONG
              PRINT "Result..................: ";CHR$(138)
              WAITKEY$
          END FUNCTION

          Comment


          • #6
            Emanuele:

            The code below shows the different way those special characters are displayed in the IDE vs the console screen. If you want to embed in your code text containing special characters, an easy way is to "produce" it in a text procesor (NOTEPAD for instance) and then to copy and paste in your code. If you have to put only a few, then you could pick the proper one from this same code.

            Regards,

            Code:
             
            #COMPILE EXE
            #DIM ALL
             
            FUNCTION PBMAIN () AS LONG
             PRINT " Ç 128 €   ";
             PRINT "ü 129 ü   ";
             PRINT "é 130 ‚   ";
             PRINT "â 131 ƒ   ";
             PRINT "ä 132 „   ";
             PRINT "à 133 …   ";
             PRINT "å 134 †   ";
             PRINT "ç 135 ‡   ";
             PRINT "ê 136 ˆ   ";
             PRINT "ë 137 ‰   ";
             PRINT "è 138 Š   ";
             PRINT "ï 139 ‹   ";
             PRINT "î 140 Œ   ";
             PRINT "ì 141 ì   ";
             PRINT "Ä 142 Ž   ";
             PRINT "Å 143 Å   ";
             PRINT "É 144 É   ";
             PRINT "æ 145 ‘   ";
             PRINT "Æ 146 ’   ";
             PRINT "ô 147 “   ";
             PRINT "ö 148 ”   ";
             PRINT "ò 149 •   ";
             PRINT "û 150 –   ";
             PRINT "ù 151 —   ";
             PRINT "ÿ 152 ˜   ";
             PRINT "Ö 153 ™   ";
             PRINT "Ü 154 š   ";
             PRINT "ø 155 ›   ";
             PRINT "£ 156 œ   ";
             PRINT "Ø 157 Ø   ";
             PRINT "× 158 ž   ";
             PRINT "ƒ 159 Ÿ   ";
             PRINT "á 160 á   ";
             PRINT "í 161 ¡   ";
             PRINT "ó 162 ¢   ";
             PRINT "ú 163 £   ";
             PRINT "ñ 164 ¤   ";
             PRINT "Ñ 165 ¥   ";
             PRINT "ª 166 ¦   ";
             PRINT "º 167 §   ";
             PRINT "¿ 168 ¨   ";
             PRINT "® 169 ©   ";
             PRINT "¬ 170 ª   ";
             PRINT "½ 171 «   ";
             PRINT "¼ 172 ¬   ";
             PRINT "¡ 173 ­   ";
             PRINT "« 174 ®   ";
             PRINT "» 175 ¯   ";
             PRINT "¦ 176 °   ";
             PRINT "¦ 177 ±   ";
             PRINT "¦ 178 ²   ";
             PRINT "¦ 179 ³   ";
             PRINT "¦ 180 ´   ";
             PRINT "Á 181 µ   ";
             PRINT "Â 182 ¶   ";
             PRINT "À 183 ·   ";
             PRINT "© 184 ¸   ";
             PRINT "¦ 185 ¹   ";
             PRINT "¦ 186 º   ";
             PRINT "+ 187 »   ";
             PRINT "+ 188 ¼   ";
             PRINT "¢ 189 ½   ";
             PRINT "¥ 190 ¾   ";
             PRINT "+ 191 ¿   ";
             PRINT "+ 192 À   ";
             PRINT "- 193 Á   ";
             PRINT "- 194 Â   ";
             PRINT "+ 195 Ã   ";
             PRINT "- 196 Ä   ";
             PRINT "+ 197 Å   ";
             PRINT "ã 198 Æ   ";
             PRINT "Ã 199 Ç   ";
             PRINT "+ 200 È   ";
             PRINT "+ 201 É   ";
             PRINT "- 202 Ê   ";
             PRINT "- 203 Ë   ";
             PRINT "¦ 204 Ì   ";
             PRINT "- 205 Í   ";
             PRINT "+ 206 Î   ";
             PRINT "¤ 207 Ï   ";
             PRINT "ð 208 Ð   ";
             PRINT "Ð 209 Ñ   ";
             PRINT "Ê 210 Ò   ";
             PRINT "Ë 211 Ó   ";
             PRINT "È 212 Ô   ";
             PRINT "i 213 Õ   ";
             PRINT "Í 214 Ö   ";
             PRINT "Î 215 ×   ";
             PRINT "Ï 216 Ø   ";
             PRINT "+ 217 Ù   ";
             PRINT "+ 218 Ú   ";
             PRINT "¦ 219 Û   ";
             PRINT "_ 220 Ü   ";
             PRINT "¦ 221 Ý   ";
             PRINT "Ì 222 Þ   ";
             PRINT "¯ 223 ß   ";
             PRINT "Ó 224 à   ";
             PRINT "ß 225 á   ";
             PRINT "Ô 226 â   ";
             PRINT "Ò 227 ã   ";
             PRINT "õ 228 ä   ";
             PRINT "Õ 229 å   ";
             PRINT "µ 230 æ   ";
             PRINT "þ 231 ç   ";
             PRINT "Þ 232 è   ";
             PRINT "Ú 233 é   ";
             PRINT "Û 234 ê   ";
             PRINT "Ù 235 ë   ";
             PRINT "ý 236 ì   ";
             PRINT "Ý 237 í   ";
             PRINT "¯ 238 î   ";
             PRINT "´ 239 ï   ";
             PRINT "­ 240 ð   ";
             PRINT "± 241 ñ   ";
             PRINT "= 242 ò   ";
             PRINT "¾ 243 ó   ";
             PRINT "¶ 244 ô   ";
             PRINT "§ 245 õ   ";
             PRINT "÷ 246 ö   ";
             PRINT "¸ 247 ÷   ";
             PRINT "° 248 ø   ";
             PRINT "¨ 249 ù   ";
             PRINT "· 250 ú   ";
             PRINT "¹ 251 û   ";
             PRINT "³ 252 ü   ";
             PRINT "² 253 ý   ";
             PRINT "¦ 254 þ   ";
             PRINT "  255 ÿ  ";
             WAITKEY$
            END FUNCTION

            Comment


            • #7
              Special ASCII caracters

              If you need to use those special characters to make old style console menus, this little Programmers' PinUp will be very handy.
              I found that little gem many years ago in PC Magazine and used it very often with my QB45 codes.
              But, be aware that only a few fixed Fonts can use those characters.
              8514OEM, Terminal and the best one by far is aSwitMono437 that was added to the PB/CC IDE with the 5.01 update.
              If you want to use that font for writing your code go to the Window Tab and then Options, Editor Text, Font Preference and select that Font.
              I found it better than 8514OEM as you can increase its size instead of being stuck with 11 points

              http://www.powerbasic.com/support/pb...1&d=1247924815

              Sorry about the quality as it is a small piece of yellowed paper and the 1 meg limit for BMP files prevented me from enhancing it
              But the better way is to use the graphic tools for your menus and screens.
              Attached Files
              Last edited by Guy Dombrowski; 18 Jul 2009, 09:00 AM.
              Old QB45 Programmer

              Comment


              • #8
                Also, if you need, like me, to use french accents, I recommend a very useful program by Semen Matusovski that will facilitate your coding.
                You can switch from Standard mode to Semen mode by hitting F12 key.
                This will alternate Dos and Windows ASC value.

                http://www.zdt.ru/Pb/dsbPrePbEd.Exe

                Sorry about the broken link. Semen seems to have moved away so I will repost his program here.

                http://www.powerbasic.com/support/pb...1&d=1247927445
                Last edited by Guy Dombrowski; 18 Jul 2009, 09:38 AM.
                Old QB45 Programmer

                Comment


                • #9
                  Your second link results in this message:

                  vBulletin Message

                  Invalid Attachment specified. If you followed a valid link, please notify the administrator

                  Comment


                  • #10
                    See post #12
                    Last edited by Arthur Gomide; 24 Jul 2009, 03:27 PM. Reason: #12
                    "The trouble with quotes on the Internet is that you can never know if they are genuine." - Abraham Lincoln.

                    Comment


                    • #11
                      Semen program

                      Thank you Arthur,

                      Your link does work and this little gem will work with PBCC 5.01
                      Old QB45 Programmer

                      Comment

                      Working...
                      X