Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confusing Chr$ explanation
#6
Hi PhilOfPerth,

Here are some resources that I found very helpful for ASC II and Extended ASC II -- and ALT Codes.  I recommend you read and review in order.

OVERVIEW TABLE OF BOTH ASC II AND EXTENDED ASC II
https://www.asciitable.com/

MORE DETAILS ON ASC II
https://www.lookuptables.com/text/ascii-table
  • ASCII was originally created as a standard for sending text over phone lines, and first used with teleprinters back in 1963. It consists of 128 characters (7 bit).
  • Every ASCII character has an equivalent number, often used in programming languages such as Python.
  • The first 32 ASCII characters (0-31) and 127 (DEL) are actually commands historically used to control the teleprinter, such as the well known carriage return (13) and line feed (10). For this reason they are referred to as control characters, control codes or non printable characters.
  • The remainder of the 128 ASCII characters are the visible / printable characters most people would equate to plain text. These printable characters are often referred to as the ASCII Standard Character Set and include upper case letters, lower case letters, numbers and basic punctuation.

MORE DETAILS ON EXTENDED ASC II
https://www.lookuptables.com/text/extended-ascii-table
  • There are well over 200 different "extended" (8 bit) versions of the ASCII character set.
  • Extended ASCII provides 256 characters, the extended part making up characters 128-255.
  • Various extended versions have been developed for different purposes such as to support proprietary technology, different alphabets, or simply to draw nice boxes on the screen.
  • Below is the CP437 (Code Page 437) version which was present on the original IBM PC, based on characters used in Wang word processing machines.
  • This particular set of extended ASCII characters are sometimes referred to as ALT Codes because in Windows it is possible to hold down the ALT key and type the 3 digit ASCII code on the number pad to output a character not physically present on the keyboard.

ALT CODES (IMPORTANT)
https://www.lookuptables.com/text/alt-codes
Please note that the first two rows of codes in the QB64pe ASC II table are what are called "ALT Codes".
  • There are some characters that are not present on the keyboard, so to be able to 'type' them isn't straight forward. Here are your options:
  • Windows Character Map
  • Press the Windows key and type Character Map - here you can find all the characters visually if you know the Character Set they belong to.
  • Use Alt Codes - Keyboard Shortcuts
  • Use numeric shortcuts known as ALT Codes - Simply:
  • Make sure Num Lock is ON
  • Hold down the ALT Key
  • Type the relevant number on the numeric keypad
  • Release the ALT key
  • * These should work if your system locale is set to English (United States).

DIFFERENCE BETWEEN ANSI AND ASC II (not super important)
http://www.differencebetween.net/technol...and-ascii/


You can see the QB64pe ASC II Chart under the IDE Tools Menu --> ASC II Chart, here is the image that comes up.  Note it uses the ALT codes for the "non-printable" 1 to 32 first items.

[Image: 01.png]

Finally be careful when inputting information in and what the text file encoding is, including Unicode and UTF-8, etc.....

Cheers!

image hosting
Reply


Messages In This Thread
Confusing Chr$ explanation - by PhilOfPerth - 07-07-2023, 01:18 AM
RE: Confusing Chr$ explanation - by CharlieJV - 07-07-2023, 01:31 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-07-2023, 01:49 AM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-07-2023, 01:52 AM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-08-2023, 02:49 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-07-2023, 03:36 AM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-07-2023, 04:52 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-07-2023, 05:39 AM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-07-2023, 06:16 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-08-2023, 12:47 AM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-08-2023, 01:14 AM
RE: Confusing Chr$ explanation - by SagaraS - 07-08-2023, 08:52 AM
RE: Confusing Chr$ explanation - by bplus - 07-08-2023, 02:05 PM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-08-2023, 03:59 PM
RE: Confusing Chr$ explanation - by SagaraS - 07-08-2023, 07:35 PM
RE: Confusing Chr$ explanation - by TempodiBasic - 07-08-2023, 09:30 PM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-08-2023, 10:44 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-09-2023, 02:49 AM
RE: Confusing Chr$ explanation - by TempodiBasic - 07-09-2023, 03:10 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-09-2023, 04:22 AM
RE: Confusing Chr$ explanation - by Space_Ghost - 07-09-2023, 07:43 AM
RE: Confusing Chr$ explanation - by RhoSigma - 07-09-2023, 08:05 AM
RE: Confusing Chr$ explanation - by TempodiBasic - 07-09-2023, 03:48 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-10-2023, 01:29 AM
RE: Confusing Chr$ explanation - by SagaraS - 07-09-2023, 08:12 AM
RE: Confusing Chr$ explanation - by SagaraS - 07-09-2023, 11:50 AM
RE: Confusing Chr$ explanation - by TempodiBasic - 07-09-2023, 04:40 PM
RE: Confusing Chr$ explanation - by SagaraS - 07-10-2023, 11:23 AM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-10-2023, 03:34 PM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-11-2023, 04:17 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-12-2023, 06:03 AM
RE: Confusing Chr$ explanation - by SMcNeill - 07-16-2023, 11:00 PM
RE: Confusing Chr$ explanation - by SagaraS - 07-15-2023, 08:47 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-16-2023, 12:18 AM
RE: Confusing Chr$ explanation - by SagaraS - 07-16-2023, 10:31 AM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-16-2023, 05:06 PM
RE: Confusing Chr$ explanation - by bplus - 07-16-2023, 05:53 PM
RE: Confusing Chr$ explanation - by mnrvovrfc - 07-16-2023, 07:35 PM
RE: Confusing Chr$ explanation - by SagaraS - 07-16-2023, 08:24 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-16-2023, 11:24 PM
RE: Confusing Chr$ explanation - by SMcNeill - 07-16-2023, 11:42 PM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-17-2023, 01:10 AM
RE: Confusing Chr$ explanation - by bplus - 07-17-2023, 01:18 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-17-2023, 01:34 AM
RE: Confusing Chr$ explanation - by bplus - 07-17-2023, 01:41 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-17-2023, 01:49 AM
RE: Confusing Chr$ explanation - by bplus - 07-17-2023, 02:08 AM
RE: Confusing Chr$ explanation - by PhilOfPerth - 07-17-2023, 02:33 AM



Users browsing this thread: 12 Guest(s)