PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Deletes a worksheet from a Spreadsheet control found in a window.
Example
// Deletes all worksheets except for the first one
FOR i = 1 TO PSHEET_MySpreadsheet..NbWorksheet TO 2 STEP -1
SpreadsheetDeleteWorksheet(PSHEET_MySpreadsheet, i)
END
Syntax

Deleting a worksheet identified by its number Hide the details

SpreadsheetDeleteWorksheet(<Spreadsheet Control> [, <Worksheet Number>])
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Worksheet Number>: Optional integer
Number of the worksheet to delete. If this parameter is not specified, the current worksheet is deleted.

Deleting a worksheet identified by its name Hide the details

SpreadsheetDeleteWorksheet(<Spreadsheet Control> , <Worksheet Name>)
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Worksheet Name>: Character string (with quotes)
Name of the worksheet to delete.
Remarks
  • If a single worksheet is left in the Spreadsheet control, SpreadsheetDeleteWorksheet has no effect.
  • This function can only be used on a Spreadsheet control found in a window.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment