F_retkey: Return key string

Source: Internet
Author: User

Global Type f_retkey from function_object
End type

Forward prototypes
Global function string f_retkey (keycode key)
End prototypes

Global function string f_retkey (keycode key); choose case key
Case Keya!
Return 'A'
Case keyb!
Return 'B'
Case keyc!
Return 'C'
Case keyd!
Return 'D'
Case keye!
Return 'E'
Case keyf!
Return 'F'
Case keyg!
Return 'G'
Case Keyh!
Return 'H'
Case keyi!
Return 'I'
Case keyj!
Return 'J'
Case keyk!
Return 'K'
Case keyl!
Return 'l'
Case keym!
Return 'M'
Case keyn!
Return 'n'
Case keyo!
Return 'O'
Case keyp!
Return 'P'
Case keyq!
Return 'Q'
Case keyr!
Return 'R'
Case keys!
Return's'
Case keyt!
Return 'T'
Case keyu!
Return 'U'
Case keyv!
Return 'V'
Case keyw!
Return 'W'
Case keyx!
Return 'X'
Case keyy!
Return 'y'
Case keyz!
Return 'Z'
Case key1!
Return '1'
Case key2!
Return '2'
Case key3!
Return '3'
Case key4!
Return '4'
Case key5!
Return '5'
Case key6!
Return '6'
Case key7!
Return '7'
Case key8!
Return '8'
Case key9!
Return '9'
Case key0!
Return '0'
Case else
Return''
End choose
End Function

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.