Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to hande TIME in vfp50a?
Message
De
29/08/1997 14:35:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00047460
Message ID:
00047675
Vues:
30
>>>>I am writing a program and I need a TIME IN field and
>>>>a TIME OUT field. I know I could use VALIDS and check
>>>>the user entry, but I thought that vfp50 might have
>>>>some built in stuff. Any ideas?
>>>
>>>Robert,
>>>
>>>I am just thinking off of the top of my head here...
>>>
>>>You could use a datetime field and then either fill the date portion with null or you could use the entire field. Your program would then have a time and date for the start of the appointment (TIME_IN) and time and date for the end of the appointment (TIME_OUT). It would be a more general solution to scheduling.
>>>
>>>You would then be using a field that is fundamentally of type "time" and foxpro would handle much of the error checking.
>>>
>>>Someone jump in here if this suggestion is totally wrong, but I pretty sure this should work.
>>
>>hay Evan:
>>I tried it and if I could get rid of the date, it might work.
>>I do not need the date, only TIME IN and TIME OUT. I am not
>>aware of a way to substr a field. any ideas?
>>thanks..rob
>
>Rob,
>
>You might want to check out the format statement, perhaps you can suppress the date portion using that. There must be a way. Let's just hope one of these foxpro gurus jump in.

Use TIME() by itself.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform