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.
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
The Property CurrentSheet allows to know and modify the current sheet of an Spreadsheet control.
Example
// Add a worksheet
nWorksheet is int
nWorksheet = SpreadsheetAddWorksheet(PSHEET_MySpreadsheet)
// Select the worksheet
TBLR_SheetMount.SheetOngoing = nSheet
Syntax

Finding out the position of the current worksheet Hide the details

<Result> = <Spreadsheet control>.CurrentWorksheet
<Result>: Integer
Position of the current worksheet.
<Spreadsheet control>: Control name
Name of Spreadsheet control to use.

Modifying the current worksheet in a Spreadsheet control Hide the details

<Spreadsheet control>.CurrentWorksheet = <New value>
<Spreadsheet control>: Control name
Name of Spreadsheet control to use.
<New value>: Integer
Position of the worksheet that will become the current worksheet.
Remarks
  • If the Spreadsheet control does not manage the multiple worksheets:
    • the modification of the current worksheet has no effect,
    • the position of the current worksheet is always set to 1.
  • The Spreadsheet control management functions always handle the data in the current worksheet.
  • The syntaxes for accessing the cells always handle the current worksheet.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment