Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have combobox with hours
Message
From
28/04/2006 16:51:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01117548
Message ID:
01117680
Views:
16
>I am trying to do a combobox that would allow the user to select the time:
>07:00
>07:15
>07:45
>08:00
>08:15
>08:45
>...
>17:45
>18:00
>
>When I am using the builder to add manually, it doesn't allow me to enter all those.
>
>What would be the best (easiest) way to do that ?
>
>Thanks
>Eric
set hours to 24
set second off
with thisform.myListBox
 for ix = 7 to 17
   .AddItem( ttoc(ctot('0') + m.ix * 3600,2) )
   .AddItem( ttoc(ctot('0') + m.ix * 3600 + 15 * 60,2) )
   .AddItem( ttoc(ctot('0') + m.ix * 3600 + 45 * 60,2) )
 endfor
   .AddItem( ttoc(ctot('0') + 18 * 3600,2) )
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform