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
Returns the version of the browser used by the Web user.
Versions 21 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 21
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
// Displays a specific page for IE9
IF BrowserPlatform() = BrowserTypeInternetExplorer THEN
        SWITCH BrowserVersion(BrowserMajorVersion)
        CASE 9
                PageDisplay(PAGE_Form_IE9)
        OTHER CASE
                PageDisplay(PAGE_Form_IE)
        END
ELSE
        PageDisplay(PAGE_Form)
END
Syntax
<Result> = BrowserVersion([<Information>])
<Result>: Variant
  • Browser version (the type depends on the requested information):
    • If the BrowserFullVersion constant was used, <Result> is a character string.
    • If the BrowserMajorVersion constant was used, <Result> is an integer.
  • 0 if the browser used by the Web user is unknown.
<Information>: Optional Integer constant
Requested information:
BrowserFullVersionFull version number of the browser used by the Web user.
BrowserMajorVersion
(Default value)
Major version number of the browser used by the Web user.
Remarks
  • For a dynamic site (non-AWP site), the returned value corresponds to the browser used when connecting to the site. If the user changes browser (via a copy-paste of URL in another browser for example), this change is not detected.
  • Versions 20 and later
    If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    New in version 20
    If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
    If your project is using cached sessions, this function must not be used in the "Initializing the project" process. This function must be used in the "Initializing the project after connection to the site" process.
Components
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230page.so
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment