May 07, 2024, 08:17:17 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


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