ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The DefaultValue property is used to:
  • Know the default value of a field. This item was defined in the data model editor or programmatically.
  • Set the default value of an item (only for items defined programmatically).
Example
// Define the default value of the Orders.Title item
Civility.DefaultValue = 1
...
Address2 is Item Description
Address2.NullAllowed = True
// Set default value
Address2.DefaultValue = Null
...
// Validate the data file description
HDescribeFile(Orders)
Syntax

Know the default value of a field Hide the details

<Result> = <Data file>.<Item>.DefaultValue
<Result>: Type of item
Default value of the item.
<Data file>: Character string
Name of the data file used.
<Item>: Character string
Name of the item used.
WEBDEV - Server codeAjax

Setting the default value of an item described programmatically Hide the details

<Item>.DefaultValue = <Value>
<Item>: Character string
Name of the item used. This name is defined with the Item Description type.
<Value>: Type of item
Default value of the item.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help