ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / How to proceed? / Programming
  • Principle
  • Code example
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
A Table control managed programmatically can be:
  • read-only
  • editable
If the Table control is editable, it may be necessary to manage the addition of new rows to the Table control. To do so, you must use TableAddLine and SetFocusAndReturnToUserInput.
Principle
To manage the addition of a new row into a Table control through programming:
  1. In the window, crate a button containing the Table control. This button will manage the addition of the row into the Table control.
  2. In the click code of this button:
Remark: If you use TableAdd to add a row to the Table control, you need to use TableCount to retrieve the number of the new row.

Code example

nRowNum is int
 
// Add a row
nRowNum = TableAddLine(TABLE_OrdLine)
// The added row becomes the current row
TABLE_OrdLine = nRowNum
// Select the column where the input will be performed
SetFocusAndReturnToUserInput(TABLE_OrdLine.COL_ProductRef)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/27/2022

Send a report | Local help