Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime() Question
Message
De
06/08/1998 12:27:03
 
 
À
06/08/1998 12:15:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00124518
Message ID:
00124524
Vues:
12
>Hi All,
>
>I have a view (v_payheader) that has a datetime field (PH_date).
>
>I would like to use this field as a controlsource for a textbox.
>When a new record is added to the view, it automatically gets the current datetime() (default value from the DBC).
>
>What I don't what, is to display or allow editing of the TIME portion of the field. But I do what the ability to edit the DATE() protion.
>
>
>What can I enter in the Properties of this field in order to allow me
>to do this???
>
>TIA
>Dave

You can unbind the textbox (.Controlsource="") and fill it:
Textbox.Value=ttod(view.phdate)
When you save a record you can
Replace view.phdate With ctot(dtoc(textbox.value)+substr(ttoc(view.phdate),10))
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform