PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
DefaultValue (Property)
In french: DefaultValue
The DefaultValue property is used to:
  • Find out the default value of an item. This item was defined in the data model editor or through programming.
  • Define the default value of an item (item described through programming only).
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Define the default value of the Orders.Title item
Title.DefaultValue = 1
...
// Validate the data file description
HDescribeFile(Orders)
Syntax

Finding out the default value of an item 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.
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS WidgetUser code (UMC)Ajax

Defining the default value of an item described through programming Hide the details

<Item>.DefaultValue = <Value>
<Item>: Character string
Name of the item used. This name was defined by 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