PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Limits
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The InputEnabled property is used to:
  • Determine if a control or a group of controls is editable or read-only.
  • Change the input options for a control or group of controls.
Android This property is only available for Table controls in Android applications.
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 used>.InputEnabled
<Result>: Boolean
  • True if the control or the group of controls is editable,
  • False otherwise.
<Element used>: Control name
Name of control or group of controls to use.

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

<Element used>.InputEnabled = <New value>
<Element used>: Control name
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

The InputEnabled property applies only to:
  • edit controls,
  • WINDEV editable combo boxes,
  • Table controls,
  • WINDEVWEBDEV - Server codePHP TreeView Table controls,
  • Looper controls,
  • groups of controls.
Android The InputEnabled property applies only to Table controls. For other types of controls, you can use the State property set to Active.
WEBDEV - Browser code The InputEnabled property has no effect on the following elements:
  • Table,
  • Looper,
  • Linear looper,
  • Table column.

Special cases

  • Equivalence: The InputEnabled property set to True and the State property set to Active are equivalent, except for read-only controls that keep their "read-only" state.
  • For Table and Looper controls, the InputEnabled property is switch from the "input enabled" mode to "input disabled" 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