Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to edit datetime value in the same way as date val
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00825608
Message ID:
00825945
Vues:
21
Thanks Alessio.
Unfortunatly I want to edit this field. There are several types of documents stored in my table for some of them user must enter date of the document precisely (with time) for some of them time part is unimportant. I just want to switch the way the date of a document is edited dependend of document type.



>if the datetime value is a table field you can set the controlsource of the textbox to ttod(tablealias.fieldname)
>in this way your control becomes readonly but I suppose it would not be a problem
>
>>>>I have a datetime field in a table. For some users time part of the value is unimportant. Sometimes they need to edit the value in textbox control in exactly the same way as date values (only date without time). As far as I know there is no such property as HideTimePartOfDateTime in textboxcontrol.
>>>>It seems that there must be a simple way to do that but I found nothing.
>>>Is it file or client server problem?
>>>Anyway, if not to use controlsorce for this field
>>>you can do in valid of this textbox
>>>replave dtime with ttod(this.value)
>>>in refresh this.value=ttod(dtime) and this is all
>>
>>Thanks Vladimir!
>>I know that I can do this by code. I just hope that there is a way to force VFP to do it internally.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform