ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Tab functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Restores the configuration of dynamic tabs in a Tab control. This configuration was saved in string format by TabSaveConfiguration.
Example
// Asks the user for the configuration that will be loaded
sFile is string
 
// Opens the file picker
sFile = fSelect("", "", "Select a configuration file...", ...
"Dashboard configuration" + TAB + "*.conf", "*.conf")
// If a file is selected
IF sFile <> "" THEN
// Retrieves the configuration found in the file
sConfiguration is string = fLoadText(sFile)
// Loads the configuration
IF TabLoadConfiguration(TAB_DynTab, sConfiguration) THEN
ToastDisplay("The configuration was loaded", toastShort, vaMiddle, haCenter)
ELSE
Error("Error while loading the configuration", ErrorInfo())
END
END
Syntax
<Result> = TabLoadConfiguration(<Tab control> , <Configuration>)
<Result>: Boolean
  • True if the configuration was loaded,
  • False if an error occurs. If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Tab control>: Control name
Name of the Tab control to be used.
<Configuration>: Character string
Configuration of the dynamic tabs saved by TabSaveConfiguration.
Component: wd300obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help