PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Font variable
  • Object type
  • Name of an Connection
  • 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
Name is used to find out
  • the name of the font associated with a Font variable.
    Remark: The font name must correspond to one of the fonts installed on the current computer.
  • 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 - Browser code The Property Name allows to know the real name of an Control generated in the page, i.e. the alias of Control. 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 Property Name allows you to change the name of the policy associated with an Variable of type Font.
The Property Name also allows you to manage the name of the 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 by programming,
    • view,
    • query run beforehand by HExecuteQuery,
    • item defined in the data model editor or by programming,
    • link defined in the data model editor or by programming.
  • Define the name of the described element:
    • when a file is described by programming,
    • when an item is described by programming,
    • when a link is described by programming,
    • when a full-text index is described by programming.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
WEBDEV - Server codeAjax
// Define the characteristics of a Font variable
Font1 is Font
Police1.Nom = "Arial"
Font1.Size = 14
Police1.Angle = 45
// Apply the font to "MyControl"
MyFont Field = Font 1
WEBDEV - Server codeAjaxHFSQLHFSQL 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
Syntax

Finding out the name of specified element Hide the details

<Result> = <Element used>.Name
<Result>: Character string
Name of specified element.
<Element used>: Character string (with or without quotes)
Name of element to use.
WEBDEV - Server codeAjaxHFSQLHFSQL Client/Server

Modifying the name of specified element Hide the details

<Element used>.Name = <New name>
<Element used>: Character string (with or without quotes)
Name of dynamic object used:
or
Name of the Font variable to use.
<New name>: Character string
New name for the specified element
Remarks
WEBDEV - Server codeAjax

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:
WEBDEV - Server codePHPAjax

Object type

The Property Name returns a string Void ("") for:
  • the rows found in the Table, List Box, ListView or Combo Box controls,
  • the cells in Table controls.
WEBDEV - Server codeAjaxHFSQL Client/ServerOLE DBNative Connectors (Native Accesses)

Name of an Connection

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 allows to know the name of the Connection defined by the HFSQL engine.

Limits

WEBDEV - Server code The Property Name cannot be used on:
  • an option in a Radio Button or Check Box control,
  • an element in a TreeView control.
WEBDEV - Browser code The Property Name applies only to the following fields:
  • Edit control,
  • List Box,
  • Combo Box,
  • Check Box,
  • Radio Button,
  • Button,
  • Versions 23 and later
    Group of controls.
    New in version 23
    Group of controls.
    Group of controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment