PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • ActiveX control
  • Chart control
  • Drawer control
  • Combo Box control
  • Limits
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
InitialValue (Property)
In french: ValeurInitiale
..InitialValue is used to find out the initial value of a control found in a window or in a page. The initial value corresponds to the initial value defined in the editor ("Content" tab of the description window of control).
Versions 16 and later
Universal Windows 10 App This property is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This property is now available for the Windows Phone applications.
Universal Windows 10 App This property is now available for the Windows Phone 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
// Initialize the value of "EDT_Customer" with its initial value
EDT_Customer = EDT_Customer..InitialValue
Syntax
<Initial value> = <Control name>..InitialValue
<Initial value>: Any type
Initial value of specified control.
<Control name>: Character string (with or without quotes)
Name of control to use.
Remarks
WINDEV

ActiveX control

For an ActiveX control, the initial value corresponds to the COM identifier (ProgID) of the ActiveX selected when creating the window.
WINDEV

Chart control

For a Chart control, the initial value corresponds to the image displayed in the control background, selected when creating the window or the page.
WINDEV

Drawer control

For a HideShow control, ..InitialValue corresponds to the status of the control (expanded (1) or collapsed (0)) selected when creating the control.
WINDEV

Combo Box control

For a Combo Box control, ..InitialValue is used to read again the initial string assigned to the element.
For example, if the following code is used to add an element:
ListAdd(Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
gLink("Customer.CustomerName" + i))
the following code is used to read the initial string again:
Combo1[1]..InitialValue
Note: The result of ..DisplayedValue does not allow you to retrieve information about te content added by gLink.

Limits

WINDEV In a window, ..InitialValue cannot be used on:
  • a window,
  • a caption,
  • a button,
  • a Shape control,
  • an option in a radio button or check box,
  • a row in a list box, listview or table,
  • a cell or a column in a table,
  • a menu,
  • a tab pane,
  • a group of controls,
  • a TreeView element.
Java ..InitialValue only applies to the following elements:
  • Edit Control.
  • Image.
  • Check box.
  • Radio button.
  • List Box.
  • Combo Box.
  • Table.
  • Supercontrol.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment