Main Menu

KB#01031-How to force all lower case charcters using INPUTE

Title:

How to force all lower case charcters using INPUTE

Description:

Here is a code segment that will force all lower case characters. 


0010 LET T$="lower: table 7f " 
0020 FOR CHAR=0 TO 127 
0030 LET LOWER=CHAR; IF CHAR>=ASC("A") AND CHAR<=ASC("Z") THEN LET LOWER=ASC(CVS(CHR(CHAR),8)) 
0040 LET T$=T$+HTA(CHR(LOWER)) 
0050 NEXT CHAR 
0060 EXECUTE "100 "+T$ 
0070 LOOP: 
0080 INPUT (0,TBL=LOWER)"enter value: ",STR$; IF STR$="" THEN STOP 
0090 PRINT "you entered: ",STR$; GOTO LOOP 
0100 LOWER: TABLE 7F 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 



Last Modified: 02/23/2004 Product: PRO/5 Operating System: N/A

BASIS structures five components of their technology into the BBx Generations.

  Google+ View BASIS LinkedIN Profile Visit our Twitter Feed Check out our Facebook Public Profile Click to View the BASIS youTube channel