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
Selects a worksheet (identified by its name) in a Spreadsheet control.
Example
// [Go to Worksheet] button
SpreadsheetSelectWorksheet(PSHEET_MySpreadsheet, EDT_NameWorksheet_To_Select)
IF ErrorOccurred = True THEN
Error(ErrorInfo())
ELSE
STC_MyWorksheet = PSHEET_MySpreadsheet..CurrentWorksheet
END
Syntax
SpreadsheetSelectWorksheet(<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 select.
Remarks
  • The subscript of the current worksheet is returned by ..CurrentWorksheet.
  • The name of the current worksheet is returned by ..WorksheetName.
  • If the worksheet does not exist, the function triggers a non-fatal error: the ErrorOccurred variable is set to True and ErrorInfo returns the error details.
  • 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