PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Displaying an information in an edit control
  • Retrieving the value typed in an edit control
  • Properties specific to Edit controls
  • Special case: UPLOAD edit control
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
Overview
An edit control can be handled through programming. To do so, use the variable of edit control in the code.
The variable of edit control corresponds to the name of edit control. The type of variable depends on the type of edit control (numeric, text, currency, ...).
Displaying an information in an edit control
To display an information in an edit control, a simple assignment is sufficient.
For example:
  • direct assignment:
    EDT_CustomerName = "Doe"
  • assignment by variable:
    EDT_NAME = Customer_Name
  • assignment by calculation:
    EDT_NAME = NoSpace(CUSTOMER.LASTNAME) + TAB + NoSpace(CUSTOMER.FIRSTNAME)
Remark: If the control is associated with a data file item, the assignment is automatically performed via: You can also use the following notation: CustomerName = CUSTOMER.NAME. For more details, see Linking an edit control to an item.
Retrieving the value typed in an edit control
To retrieve the content of edit control:
  • perform a simple assignment.
    For example:
    CurrentEditContent = EDT_EDIT1
  • retrieve part of the information.
    For example:
    Initial = Left(EDT_Name, 1)
    Initial = EDT_Name[[1]]
  • use the Value property
Remark: If the control is associated with an item found in a data file, the value typed is automatically retrieved by using:
You also have the ability to use the following notation: CUSTOMER.NAME = Edit1. For more details, see Linking an edit control to an item.
Properties specific to Edit controls
The following properties are used to manage the characteristics of an edit control by programming.
Any type of edit control
HorizontalAlignmentUsed to find out and modify the horizontal alignment of edit control.
VerticalAlignmentUsed to find out and modify the vertical alignment of control.
CursorUsed to find out and modify the position of mouse cursor in an edit control.
DndTargetUsed to find out and modify the behavior of target control during Drag and Drop.
DndSourceUsed to find out and modify the behavior of source control during Drag and Drop.
EllipsisUsed to find out and modify the management mode of ellipsis in an edit control.
CursorEndAllows you to get and change the end position of the mouse cursor.
InputMaskAllows you to identify and change the input mask.
LeftIndentUsed to find out and modify the left indent applied to the text displayed in the edit control.
RichEditUsed to find out whether a control is in RTF (Rich Text Format) and to modify the RTF type of a control.
SelectedTextUsed to find out and modify the text selected in an edit control.
InputTypeUsed to find out the type of edit control.
Text edit controls only
DeleteButtonUsed to manage the presence of delete button in the control.
AutomaticLinkUsed to to find out and modify the detection mode for links in multiline edit controls.
PasswordUsed to find out whether an edit control is a "Password" control
MultilineUsed to find out whether a control is multiline or not.
AutoLineWrapUsed to find out whether a multiline edit control supports (or not) the automatic line wrap.
Currency + Euro edit control only
DisplayCurrencyAllows you to find out and modify the currency used when displaying or entering a value in a "Currency + Euro" edit control.
MemoryCurrencyAllows you to find out and modify the currency used when handling a "Currency + Euro" edit control through programming.
Duration and Numeric edit control
MaxValueUsed to find out and modify the upper bound of edit control.
MinValueUsed to find out and modify the lower bound of edit control.
For a complete list of WLanguage properties that can be used with an edit control, see Properties associated with an edit control.
Special case: UPLOAD edit control
WEBDEV - Server code The Upload edit control is used to simplify the upload from the computer of the Web user to the server.
WEBDEV proposes two WLanguage functions for managing the file upload:
UploadCopyFileSaves on the server a file "uploaded" by the Web user. This upload may have been performed:
  • via an "Upload" edit control.
  • via a single-file or multi-file Upload control.
UploadFileNameReturns the name of a file "uploaded" by the Web user. This upload may have been performed:
  • via an "Upload" edit control.
  • via a single-file or multi-file Upload control.
For more details, see Uploading files.
Remark: An Upload control is also available ; it is used to perform a single-file upload or a multi-file upload. For more details, see Upload control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment