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 varias
  • Window alias
  • Tab pane name
  • Object type
  • Connection name
  • Limitations
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 Name property is used to get:
  • the name of the font associated with a variable of type Font.
    Note: The font name must match one of the fonts installed on the current workstation.
  • the name of a control, report or report block.
  • the name of a control, group of controls or window.
  • the name of a control, group of controls or page.
    WEBDEV - Código Navegador The Name property is used to get the real name of a control generated in the page, i.e. the control alias. This property can only be used on the following types of controls: edit control, List Box, Combo Box, Check Box, Radio Button and Button.
The Name property is used to change the name of the font associated with a Font variable.
The Name property can also be used to handle the names of different HFSQL objects. You can:
  • Find out the name of a connection.
  • Find out the name of an object handled by indirection:
    • data file defined in the data model editor or programmatically,
    • view,
    • query previously executed with HExecuteQuery,
    • item defined in the data model editor or through programming,
    • link defined in the data model editor or programmatically.
  • Define the name of the described element:
    • when a file is described through programming,
    • when an item is described through programming,
    • when a link is described through programming,
    • when a full-text index is described through programming.
AndroidiPhone/iPadIOS WidgetMac Catalyst When used on the MyChildWindow keyword, the Name property gets the name of the last closed child window in a mobile application.
Ejemplo
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)Ajax
// Define the characteristics of a Font variable
Font1 is Font
Font1.Name = "Arial"
Font1.Color = LightYellow
Font1.Size = 14
Font1.SizeUnit = unitPoint
Font1.Orientation = 45
// Apply the font to "MyControl"
MyControl.Font = Font1
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)AjaxHFSQL ClassicHFSQL Client/ServerHyper File 5.5
AnItem1 is Item Description
...
// Declare the item 1
AnItem1.Name = "ITM1"
AnItem1.Type = hItemText
AnItem1.Size = 20
HDescribeItem(AFile, AnItem1)
...
HDescribeFile(AFile)
HCreation(Temp_File)
// Procedure to which a control name is passed as parameter
PROCEDURE MakeVisible(Control)
// Name of current control
IF {Control}..Name = "CustomerName" THEN
	{Control}..Visible = True
END
Sintaxis

Finding out the name of specified element Ocultar los detalles

<Result> = <Element used>.Name
<Result>: Character string
Name of specified element.
<Element used>: Character string
Name of the element to be used.
WINDEVWEBDEV - Código ServidorReportes y ConsultasAndroidWidget Android iPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)AjaxHFSQL ClassicHFSQL Client/Server

Modifying the name of specified element Ocultar los detalles

<Element used>.Name = <New name>
<Element used>: Character string
Name of the dynamic object used:
or
Name of the Font variable to be used.
<New name>: Character string
New name for the specified element
Observaciones
WINDEVWEBDEV - Código ServidorReportes y ConsultasAndroidWidget Android iPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)Ajax Se puede crear una fuente a partir de una variable de tipo Font.
Para definir las características de la fuente, utilice:
Esta fuente se puede utilizar:
AndroidWidget Android Este tipo de fuente solo puede utilizarse en los controles de una ventana (propiedad Font).
WINDEVAndroidWidget Android iPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)

Window alias

The same window (child or sibling window) can be opened several times. To differentiate and identify the opened windows, an alias is assigned to each window.
To define an alias, use OpenSister or OpenChild. This alias is used to identify windows with functions that take a window name as a parameter (CurrentTitle, NextTitle, SetFocusAndReturnToUserInput, etc.) or to handle a control in a given window.
To get the alias of a window, use CurrentWin, PreviousWin or the Alias property.
If no alias is specified when the window is opened, an alias is automatically assigned to the window by WINDEV.
WINDEVJavaCódigo de Usuario (UMC)

Tab pane name

The Name property returns the name of the tab pane. For example: Onglet[2] for the second tab pane.
WINDEVWEBDEV - Código ServidorAndroidiPhone/iPadIOS WidgetMac CatalystJavaCódigo de Usuario (UMC)PHPAjax

Object type

The Name property returns an empty string ("") for:
  • lines in Table, List, List Box control or Combo fields,
  • cells in Table controls.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)AjaxHFSQL Client/ServerOLE DBConectores Nativos

Connection name

A connection can be created by a Connection variable. The name of the connection corresponds to the name of the variable.
If a connection with the same name already exists (in the analysis or described beforehand), the name of the connection is defined by the HFSQL engine that adds a suffix (a number) to the name of the variable.
In this case, the Name property returns the name of the connection defined by the HFSQL engine.
AndroidiPhone/iPadIOS WidgetMac Catalyst Finding out the name of the last child window that was closed
In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open.
You can get the name of the last closed child window in the "Close a child window" event of the window that opened it (the one that called OpenMobileWindow or OpenChild).
Simply use the Name property on the MyChildWindow keyword:
// Close a child window
NameChildWindow = MyChildWindow.Name
Note The ReturnedValue property is used to find out the value returned by the child window when it closes.

Limitations

WINDEVWEBDEV - Código Servidor The Name property cannot be used on:
  • an option in a Radio Button or Check Box control,
  • an element in a TreeView control.
WEBDEV - Código Navegador The Name property can only be used in the following controls:
  • Edit control,
  • List Box control,
  • Combo Box control,
  • Check Box control,
  • Radio Button control,
  • Button control,
  • Group of controls.
Java The Name property can only be used with the following elements:
  • Button control.
  • Static Text control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Window.
  • Table control.
  • Table column.
  • Supercontrol.
Widget Android The Name property can only be used with the following elements:
  • Button control.
  • Static Text control.
  • Image control.
  • Window.
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