PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Displaying an information in an edit control
  • Retrieving the value typed in an edit control
  • Properties specific to the 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
An edit control can be handled by 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.
Some examples:
  • direct assignment:
    EDT_CustomerName = "Doe"
  • assignment by variable:
    EDT_NAME = Customer_Name
  • assignment by calculation:
    EDT_NAME = NoSpace(CUSTOMER.LASTNAME) + TAB + NoSpace(CUSTOMER.FIRSTNAME)
Note: If the control is associated with a data file item, the assignment is automatically performed by using:
You also have the ability to use the following notation: CustomerName = CUSTOMER.NAME. See Linking an edit control to an item for more details.
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 ..Value
Note: If the control is associated with a data file item, the entered value is automatically retrieved by using:
You also have the ability to use the following notation: CUSTOMER.NAME = Edit1. See Linking an edit control to an item for more details.
Properties specific to the 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.
EllipseUsed to find out and modify the management mode of ellipsis in an edit control.
CursorEndUsed to find out and modify the end position of mouse cursor.
InputMaskUsed to find out and modify 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 format (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
Versions 21 and later
DeleteButton
New in version 21
DeleteButton
DeleteButton
Used 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.
Versions 21 and later
AutoLineWrap
New in version 21
AutoLineWrap
AutoLineWrap
Used 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 by programming.
Numeric edit control onlyDuration 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.
To find out the entire 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:
Versions 09 and later
UploadCopyFile
New in version 09
UploadCopyFile
UploadCopyFile
Saves 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.
Versions 09 and later
UploadFileName
New in version 09
UploadFileName
UploadFileName
Returns 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.
See Uploading files for more details.
Note: An Upload control is also available ; it is used to perform a single-file upload or a multi-file upload. See Upload control for more details.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment