May 05, 2024, 12:36:39 AM

News:

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


inputing and selecting months

Started by oneplace2u, March 21, 2010, 03:52:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

oneplace2u

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?

LarryMc

March 21, 2010, 04:16:02 PM #1 Last Edit: March 21, 2010, 04:18:03 PM by Larry McCaughn
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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library