PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • Characteristics of row elements
  • Browsing Table or TreeView Table control: Modifications in the linked data file
  • Modifications performed in a browsing Table or TreeView Table control
  • <Table>.ModifyLine function and ..Modified property
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
Modifies a row in:
  • a Table control,
  • a TreeView Table control.
Versions 16 and later
Linux This function is now available for WINDEV applications in Linux.
New in version 16
Linux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
Example
// Modify the "Paul" and "Moore" elements
// in the 5th row of "TABLE_CustomerTable" control
TABLE_CustomerTable.ModifytLine(5, "Vince", "Moore")
Syntax
<Table control>.ModifyLine(<Subscript> [, <Element column 1> [... [, <Element column N>]]])
<Table control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Subscript>: Integer
Subscript of row to modify. The subscript of first row is set to 1.
Subscript equal to -1The current row is modified. No effect if no row is selected.
Subscript greater than the number of control rowsA WLanguage error occurs.
<Element column 1>: Optional character strings
First elements of modified row. The values of these elements replace the existing values. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
<Table>.ModifyLine has no effect if none of these parameters is specified.
<Element column N>: Optional character strings
Nth elements of modified row. The values of these elements replace the existing values. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
<Table>.ModifyLine has no effect if none of these parameters is specified.
Remarks

Use conditions

<Table>.ModifyLine can be used on:
  • a browsing or memory control,
  • a single-selection or multiselection control.

Characteristics of row elements

  • To modify the value of an element in a row, use the following syntax:
    TableName.ColumnName[RowSubscript] = NewValue
  • If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
    For example:
    TABLE_CalculationTable.ModifyLine((53+29),(83-21))
WINDEVJava

Browsing Table or TreeView Table control: Modifications in the linked data file

  • If the cascading input is enabled, the data file linked to the control is automatically modified when the user goes to the next row.
  • If the cascading input is not enabled, the data file linked to the control is not modified. To write the content of the modified row into the linked data file, <Table>.Save must be used after <Table>.ModifyLine.
Remarks:
  • The "Cascading input" option can be selected in the "Details" tab of control description.
  • Java The cascading input is not available for the browsing Table controls with direct access. This option is available for the memory Table controls and for the browsing Table controls loaded in memory.

Modifications performed in a browsing Table or TreeView Table control

To modify a row in a browsing Table or TreeView Table control, we advise you to:
WINDEVJava

<Table>.ModifyLine function and ..Modified property

<Table>.ModifyLine has no influence on ..Modified. ..Modified is used to find out whether the current row was directly modified by the user (direct input in the control).
Component : wd240obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment