May 15, 2024, 02:21:19 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Catializing the first letter of and output of a input statement.

Started by oneplace2u, March 20, 2010, 10:40:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

oneplace2u

How would a person Catializing the first letter of and output of a input statement?
input "Enter City: ", city$

If I entered minneapolis and wanted it to show Minneapolis

LarryMc

One way:


input "Enter City: ", city$
city$=ucase$(left$(city$,1))+lcase$(mid$(city$,2))


LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library