Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Seconds Off for a report
Message
De
24/02/2024 07:24:40
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01687644
Message ID:
01687651
Vues:
38
>>>Hi,
>>>
>>>I have a report which shows the date and the time when the report is printed (on the top of the report). I use the following expression:
>>>
>>>TTOC( DATETIME() )
>>>
>>>This prints the date and time exactly as I want to. Except it also prints the seconds. I prefer to print only hours and minutes and PM/AM.
>>>
>>>I know that I can Set Seconds Off.
>>>But, I am wondering, is it possible to Set Seconds Off somewhere in the Report (FRX file) and then restore the setting?
>>>
>>>TIA
>>
>>You can use this expression:
>>left(ttoc(datetime()),iif(set("Century")="ON",16,14))
>>Or if you never change Set Century, you can skip the last part.
>
>I wonder though how Century is related to the Seconds. Thank you.

It's not directly related, but the string is longer with Set Century On.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform