IonicWind Software

IWBasic => General Questions => Topic started by: oneplace2u on March 21, 2010, 03:52:42 PM

Title: inputing and selecting months
Post by: oneplace2u on March 21, 2010, 03:52:42 PM
On and input statement , I don't know if it is possible or not. I want to have and input statement that will show all 12 months name and then beable to select one of the months as my input just by click on the month that I wanted.

Where would I look in the help file to learn how to do this?
Title: Re: inputing and selecting months
Post by: LarryMc on March 21, 2010, 04:16:02 PM
It sounds to me like (based on this question and your question about caps) that you are writing a console program.
If that is the case then there is no way to make a selection for inkey$ by  'clicking' on anything.

The only way I can think of making it a 1 key entry is something like this:
   print "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"
   print " a     b    c    d    e    f     g   h     i      j     k     l  "
   print "Press letter for desired month"
   int found=0
DO
   string month = INKEY$
   if instr("abcdefghijkl",month)>0 then found=1
UNTIL found=1

LarryMc