PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • Characteristics of a row
  • Browsing Table or TreeView Table control: Modifications in the linked data file
  • Modifications performed in a browsing Table or TreeView Table control
  • Modifying a record in a browsing Table control and releasing a Trigger
  • <Table>.Modify 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,
  • WINDEVWindows Mobile a table displayed in a Combo Box control.
Remark: It is recommended to use <Table>.ModifyLine. <Table>.ModifyLine is used to add:
  • TAB characters into the columns,
  • all types of values into the columns.
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.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle the TreeView Table controls in the WEBDEV and PHP sites.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
Versions 20 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Modify the "Paul" and "Moore" elements on the fifth
// row of "TABLE_CustomerTable" control
TABLE_CustomerTable.Modify("Vince" + TAB + "Moore", 5)
// Modification in a column of a Table control
COL_NAME.Modify("Moore", 5)
Syntax
<Table control>.Modify(<Row> [, <Subscript>])
<Table control>: Control name
Name of control to use. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
  • WINDEVWindows Mobile a Combo Box control with table.
<Row>: Character string
Modified row replacing the specified row. This row has the following format:
<Element of column 1> + TAB + <Element of column 2> + TAB + ...
<Subscript>: Optional integer
Subscript of row to modify. The value of first row is set to 1.
Subscript not specified or equal to -1The current row is modified. This constant has no effect if no row is selected.
Subscript greater than the number of control rowsA WLanguage error occurs.
Remarks

Use conditions

<Table>.Modify can be used on:
  • a browsing or memory control,
  • a single-selection or multiselection control.
    WEBDEV - Server codePHP Reminder: Multiselection controls are available in Ajax only WEBDEV - Server codePHP Reminder: Multiselection is not available for classic Table controls.
WEBDEV - Server codePHP This function is available for Table controls in Ajax mode, Table controls in classic mode and TreeView Table controls.
WEBDEV - Browser code This function is available for Table controls in browser mode only.
WEBDEV - Browser codeAndroidiPhone/iPad The TreeView Table control is not available.
AndroidiPhone/iPad The browsing Table controls are not available in edit. <Table>.Modify cannot be used on a browsing Table control.

Characteristics of a row

  • Each row element is changed into the type of the associated column.
  • If one of the elements corresponds to an empty string ("") or to 0 (depending on the column type), its value will be overwritten.
    For example:
    TABLE_CustomerTable.Modify("Moore" + TAB + "Peter" + TAB + "" + ...
    TAB + "06/21/72")
  • If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
    For example:
    TABLE_CalculationTable.Modify((53+29) + TAB + (83-21))
  • To modify the value of an element in a row, use the following syntax:
    TableName.ColumnName[RowSubscript] = NewValue
WINDEVWEBDEV - Server codeWindows MobileJavaPHP

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 record into the linked data file, <Table>.Save must be called after <Table>.Modify.
Remarks:
  • The "Cascading input" option can be selected in the "Details" tab of the description window of control.
  • 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.
  • Versions 19 and later
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.
    New in version 19
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.
    WEBDEV - Server code The cascading input is available for the Ajax browsing Table controls only.

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:
WINDEVWEBDEV - Server codeWindows MobileJavaUser code (UMC)

Modifying a record in a browsing Table control and releasing a Trigger

You have the ability to activate a trigger when modifying a record in a browsing Table control. See the documentation about HDescribeTrigger for more details.
WINDEVWindows MobileJava

<Table>.Modify function and ..Modified property

<Table>.Modify 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