Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to give property empty date-time value?
Message
De
07/09/2005 17:59:40
 
 
À
07/09/2005 17:26:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01047270
Message ID:
01047532
Vues:
7
>Peter:
>>>In code I can write ltSample = datetime({//:} and ltSample will have an empty value. But if I put that string {//:} as an initial value for a property, VFP immediately converts it to {} and the actual value seems to be an empty date.
>
>Fabio:
>>this is sufficient: for define a empty datetime:
>
>{ :}
>
>
>When I wrote this: ltSample = datetime({//:}
>
>That was just late night brain fog. I meant to say: ltSample = {//:}
>
>However your way produces a date value (not datetime).

Have you a different VFP ?
? VARTYPE({ :}) && this return T
I believe this is the minimum string to get a datetime value:
>
>ltSample = {/:}
>
>
>If seems that if I enter this as a property value, it MUST have an equal mark in front.
>
>Thanks.
>
>Peter

This is not true, it is a properties format display bug,
but:
- run this
_Screen.addproperty("propertyValue",{})
? VARTYPE(_Screen.propertyValue) && this return D
Write into the properties Window:
{ :}
and execute:
? VARTYPE(_Screen.propertyValue) && this return T
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform