Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have combobox with hours
Message
De
28/04/2006 16:51:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01117548
Message ID:
01117680
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform