Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime() Question
Message
De
06/08/1998 17:07:02
 
 
À
06/08/1998 12:27:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00124518
Message ID:
00124612
Vues:
13
>>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))

Thanks Ed...
I wase hping to do it without unbinding the field... I guess I knew in the back of my mind (Beleive me its pretty far back!) <g> that I's have to go this route.

Thanks again

Dave
Best
Dave
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform