Board Logo
« Print a letter using the key value »

Welcome Guest. Please Login or Register.
Sep 26th, 2017, 07:31am


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Print a letter using the key value  (Read 276 times)
TMDSOfficial
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Print a letter using the key value
« Thread started on: Apr 13th, 2017, 07:34am »

Hello !
I recently saw a post that showed how to get the keyval of the pressed key.It got me thinking, how can I print a letter using it's keyval ?
Thanks in advance !
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3089
xx Re: Print a letter using the key value
« Reply #1 on: Apr 13th, 2017, 08:54am »

chr$(keyvalue) will do it. Not all key codes can be printed some are control characters.
User IP Logged

TMDSOfficial
New Member
Image


member is offline

Avatar




PM


Posts: 10
xx Re: Print a letter using the key value
« Reply #2 on: Apr 13th, 2017, 09:16am »

Thank you ! smiley
User IP Logged

zzz000abc
Full Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 247
xx Re: Print a letter using the key value
« Reply #3 on: Apr 14th, 2017, 04:49am »

you can run the following code: Code:
for value=0 to 255
key$=chr$(value)
print value,key$
next
 
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls