PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Property TimestampType allows:
  • Find out the type of timestamp for an item. This item was defined in the data model editor or by programming.
  • Define the type of timestamp for a Date, Time or DateTime item (when describing the item by programming).
Reminder: An Item of the "Time Stamp" type cannot be assigned by programming.. It is automatically assigned with the date of creation or last modification of the Record.
Example
AFile is File Description
AnItem is Item Description
AnItem.Name = "CmdDate"
AnItem.TimestampType = htsCréation
AnItem.TimestampUTC = False
HDescribeItem(AFile, AnItem)
Syntax

Find out the type of timestamp for an item Hide the details

0
<Result>: Integer constant
Type ot timestamp for the item:
htsNoneNo timestamp.
htsCreationTimestamp when creating the record only.
htsLastModificationTimestamp whenever modifying the record.
<Data file>: Character string (with or without quotes)
Name of data file used.
<Item>: Character string (with or without quotes)
Name of item used.
WEBDEV - Server codeAjax

Defining the type of timestamp for a Date, Time or DateTime item Hide the details

<Item>.TimestampType = <Type of timestamp>
<Item>: Character string (with or without quotes)
Name of item used. This name was defined by the Item description type.
<Type of timestamp>: Integer constant
Type ot timestamp for the item:
htsNoneThe item is not a timestamp item.
htsCreationThe item is a timestamp item filled when creating the record only.
htsLastModificationThe item is a timestamp item filled whenever modifying the record.
Remarks
  • In the data model editor, you have the ability to define a Timestamp item.
  • To de fine a Timestamp item by programming:
    • The item must be a DateTime, Date or Time item,
    • the type of timestamp is specified using the Property TimestampType.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment