|
|
|
SftMaskContents.DateTime Property |
Defines the date and time field contents.
Syntax
VB.NET |
Dt = object.DateTime As Date |
||
VB |
Dt = object.DateTime As Date |
||
C#.NET |
System.DateTime Dt = object.DateTime; |
||
VC++ |
DATE Dt = object->DateTime;
|
||
C |
HRESULT object->get_DateTime(DATE* Dt); |
||
Delphi |
Dt := object.DateTime : TDateTime; |
||
VB.NET |
object.DateTime = Dt As Date |
||
VB |
object.DateTime = Dt As Date |
||
C#.NET |
System.DateTime object.DateTime = Dt; |
||
VC++ |
DATE object->DateTime = Dt;
|
||
C |
HRESULT object->put_DateTime(DATE Dt); |
||
Delphi |
object.DateTime := Dt : TDateTime; |
object
A SftMaskContents object.
Dt
A Date value defining all date and time related fields of the defined mask (see Mask property).
Comments
The DateTime property defines the date and time field contents.
The DateTime property can be used to retrieve and set portions of a Masked Edit controls contents without knowing the exact position of the data. All date and time related fields of the mask are affected.
When setting the DateTime property, the date defined using Val replaces the current contents of any date and time related fields of the mask.
Other portions of the mask can be retrieved and set using the Contents.Value property.