PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Use conditions
  • Characteristics of a row
  • Modifications performed in a browsing Table or TreeView Table 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
Modifies a row in:
  • a Table control,
  • a TreeView Table control,
Remark: It is recommended to use the <Table>.ModifyLine. <Table>.ModifyLine is used to add:
  • TAB characters into the columns,
  • all types of values into the columns.
Example
// Modification des éléments "Paul" et "Dubois" de la cinquième
// ligne du champ "TABLE_TableClient"
TABLE_TableClient.Modifie("Paul" + TAB + "Dubois", 5)
// Modification dans une colonne d'un champ Table
COL_NOM.Modifie("Dubois", 5)
Syntax
<Table control>.Modify(<Row> [, <Subscript>])
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Row>: Character string
Modified row replacing the specified row. This row has the following format:
<Elément de la colonne 1> + TAB + <Elément de la colonne 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 multi-selection 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_TableClient.Modifie("Dubois" + TAB + "Pierre" + TAB + "" + ...
    TAB + "21/06/72")
  • If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
    For example:
    TABLE_TableCalcul.Modifie((53+29) + TAB + (83-21))
  • To modify the value of an element in a row, use the following syntax:
    NomTable.NomColonne[IndiceLigne] = NouvelleValeur

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:
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment