PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Use conditions
  • Characteristics of row elements
  • 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.
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
// Modification des éléments "Paul" et "Dubois"
// de la cinquième ligne du champ Table "TABLE_TableClient"
TableModifyLine(TABLE_TableClient, 5, "Paul", "Dubois")
Syntax
TableModifyLine(<Table control> , <Subscript> [, <Element column 1> [... [, <Element column N>]]])
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current event belongs will be used.
<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 string
First element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
If none of the <Column element X> parameters are specified, function TableModifyLine has no effect.
<Element column N>: Optional character string
Nth element of the modified row. The value of this element replaces the existing value. Each element corresponds to a column. Each type of modified element must be compatible with the type of relevant column.
If none of the <Column element X> parameters are specified, function TableModifyLine has no effect.
Remarks

Use conditions

TableModifyLine can be used on:
  • a browsing or memory control,
  • a single-selection or multi-selection control.
AndroidiPhone/iPad The TreeView Table control is not available.
AndroidiPhone/iPad The browsing Table controls are not available in edit. TableModifyLine cannot be used on a browsing Table control.

Characteristics of row elements

  • To modify the value of an element in a row, use the following syntax:
    ChampTable.NomColonne[IndiceLigne] = NouvelleValeur
  • If an element corresponds to the calculation result, the numeric expression must be enclosed in brackets.
    For example:
    TableModifyLine(TABLE_TableCalcul, (53+29),(83-21))

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:
  • modify the record in the data file with HModify,
  • use the function TableDisplay to re-update the control .
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment