Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format
Message
De
07/02/2007 16:32:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01193399
Message ID:
01193408
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
It's too stupid, but you can't do this with only the transform() function, you must "roll your own" function. Not tested..
Function datewithcentury
lpara dDate
local lcCentury, lcDate
lcCentury=set('century')
set century on
lcDate=TRANSF(dDate , "@KE 99/99/99" )
if set(lcCentury='OFF'
  set century off
endif
Return lcDate
Wait wind datewithcentury(date())

>Thank edward.
>
>I want only with one transform claus...
>
>bernhart
>
>
>
>>>Hi all,
>>>
>>>Sorry in advance for my stupid question...
>>>
>>>I want a date on format 99/99/99 With transform claus.
>>>
>>>WAIT WIND TRANSF( Date() , "@KE 99/99/99" ) && century off
>>>
>>>This command do'nt function...
>>>
>>>
>>>Thank in advance
>>>
>>>bernhart
>>
>>
>>SET CENTURY on
>>WAIT WINDOW DATE()
>>SET CENTURY off
>>WAIT WINDOW DATE()
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform