PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Limits
  • Special cases
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
..InputEnabled is used to:
  • Find out whether a control or a group of controls is editable or read-only.
  • Modify the input options for a control or for a group of controls.
Versions 22 and later
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for the PHP sites.
New in version 22
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for the PHP sites.
WEBDEV - Server codeWindowsLinux This property is now available for WEBDEV sites in Windows and Linux.
WEBDEV - Browser code This property is now available in browser code.
PHP This property is now available for the PHP sites.
Example
IF EDT_Price < 100 THEN
        EDT_ShippingCost..InputEnabled = True
END
Syntax

Finding out whether a control or a group of controls is editable Hide the details

<Result> = <Element Name>..InputEnabled
<Result>: Boolean
  • True if the control or the group of controls is editable,
  • False otherwise.
<Element Name>: Character string (with or without quotes)
Name of control or group of controls to use.

Modify the input options for a control or for a group of controls Hide the details

<Element Name>..InputEnabled = <New value>
<Element Name>: Character string (with or without quotes)
Name of control or group of controls to use.
<New value>: Boolean
  • True if the control or the group of controls must be editable,
  • False otherwise.
Remarks

Limits

..InputEnabled only applies to:
  • the edit controls,
  • the Table controls,
  • WEBDEV - Server codePHP the TreeView Table controls,
  • the Looper controls,
  • the groups of controls.
WEBDEV - Browser code ..InputEnabled has no effect on the following elements:
  • Table,
  • Looper,
  • Linear looper,
  • Table column.

Special cases

  • Equivalence: ..InputEnabled set to True is equivalent to ..State equal to the Active constant except for the read-only controls that keep their "read-only" status.
  • For the Table and Looper controls, ..InputEnabled is used to switch from the "with input" mode to the "without input" mode.
Minimum version required
  • Version 17
This page is also available for…
Comments
Exemplo de Nao Permitir digitação

//Permitir Digitação
EDT_Base_Faturamento..InputEnabled=True
EDT_Base_Faturamento..Color=Argent
//Não permitir Digitação
EDT_Base_Faturamento..InputEnabled=False
EDT_Base_Faturamento..Color=Bronze

//Frances
//Permitir Digitação
EDT_Base_Faturamento..EnSaisie=Vrai
EDT_Base_Faturamento..Couleur=Argent
//Não permitir Digitação
EDT_Base_Faturamento..EnSaisie=Faux
EDT_Base_Faturamento..Couleur=Bronze


//Blog com Video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/03/windev21-curso-236-inputenabled.html
De matos AMARILDO
30 Mar. 2016