PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use in service mode
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
Opens a document in its associated application. The application is opened first, then the specified document.
Remark: The application used to open the document is the one associated with the extension of the document in Windows (INI file or registry). This associated application may differ according to the configurations used.
WEBDEV - Server code This document is opened on the server. This function can be used on the development computer because this compute is considered as being the server.
WEBDEV - Browser code This document must be found on the server or at any Internet address. This document is opened on the computer of the Web user.
Example
WEBDEV - Server codeWEBDEV - Browser codeAjax
// Open the "Functions.doc" document in Word
ShellExecute("C:\WDNEWS\Version\Functions.doc")
// Print the document
ShellExecute("C:\WDNEWS\Version\Functions.doc", "print")
WEBDEV - Browser code
// Open a site in the current browser
ShellExecute("http://www.windev.com")
Syntax
ShellExecute(<File name>)
<File name>: Character string (with quotes)
Name and full (or relative) path of document to open. A UNC path can be used.
If space characters are found in the name or path of the document to open, the quotes found around this parameter must be tripled.
Remarks

Use in service mode

ShellExecute used in service mode is used to run the associated application but the interface of this application is not visible.
Business / UI classification : Neutral code
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
exemplo Shellexecute
NOME_LOCAL_PDF is string="C:\ERPMATOS\1-NFE.PDF"
bRetorno_arquivo is boolean=ShellExecute(NOME_LOCAL_PDF)
IF bRetorno_arquivo=False THEN
//caso nao encontar arquivo, vai entrar aqui e dar a mensagem de erro
Info("Xml-Danf Nao Encontrado")
END
amarildo
13 Apr. 2020