AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • ActiveX control
  • iFrame control
  • Chart control
  • Drawer control
  • Combo Box control
  • Limits
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The InitialValue property is used to get the initial value of a control in a window or page. This value corresponds to the initial value defined in the editor ("Content" tab of the control description window).
Ejemplo
// Initialize the value of "EDT_Customer" with its initial value
EDT_Customer = EDT_Customer.InitialValue
Sintaxis
<Initial value> = <Control used>.InitialValue
<Initial value>: Any type
Initial value of specified control.
<Control used>: Control name
Name of the control to be used.
Observaciones
WINDEV

ActiveX control

For an ActiveX control, the initial value corresponds to the COM identifier (ProgID) of the ActiveX selected when creating the window.
WEBDEV - Código ServidorAjax

iFrame control

For an iFrame control, the InitialValue property corresponds to:
  • the name of the page displayed (name selected in the description window of iFrame control). For example: "MaPage1".
  • a full URL if the page displayed corresponds to a page of another Internet site.
WINDEVWEBDEV - Código ServidoriPhone/iPadIOS WidgetAjax

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 Drawer control, the InitialValue property corresponds to the state of a control (expanded (1) or collapsed(0)) selected when the control was created.
WINDEV

Combo Box control

For a Combo Box control, the InitialValue property 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(COMBO_Combo1, gImage(nImageNum,i) + "Customer.CustomerName" + i + ...
	gStoredValue("Customer.CustomerName" + i))
the following code is used to read the initial string again:
COMBO_Combo1[1].InitialValue
Note: The result of the DisplayedValue property does not retrieve information about the content added with the gStoredValue function..

Limits

WINDEV In a window, the InitialValue property cannot be used on:
  • a window,
  • a Static Text control,
  • a Button control,
  • 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,
  • an element in a TreeView control.
WEBDEV - Código Servidor In a page, the InitialValue property can only be used on:
  • an Edit control,
  • a formatted display control,
  • a Combo Box control,
  • a List Box control,
  • a Static Text control,
  • a Table control,
  • a Rich Text Area control,
  • a layout cell (if the cell is in stream mode).
Java The InitialValue property can only be used with the following elements:
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • Table control.
  • Supercontrol.
Widget Android The InitialValue property applies only to Image controls.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 13/05/2025

Señalar un error o enviar una sugerencia | Ayuda local