PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Difference with FileDisplay
  • Use in PHP
  • Cached sessions
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
StringDisplay (Function)
In French: ChaîneAffiche
AjaxNot available
Returns a specific string (or a buffer) to the client browser in response to a request. Allows you to display documents in the browser of Web user without having to use a file.
PHP In this version, this function can only be used to return a specific string.
Example
s is string
s = "<HTML>Text bold</HTML>"
StringDisplay(s)
Syntax
StringDisplay(<Buffer\Character String> [, <MIME Type> [, <Name of File for Backup>]])
<Buffer\Character String>: Buffer or character string (with quotes)
Buffer or character string that will be displayed in the browser.
<MIME Type>: Optional Ansi character string (with quotes)
  • Name of MIME type to use. The MIME type allows you to indicate to the browser the type of string to use. More than 150 types are defined in the MIME communication standard (available on Internet). The most common values recognized by most browsers are:
    • "application/pdf": document in PDF format (*.pdf)
    • "text/html": HTML page (*.htm, *.html)
    • "text/plain": text file (*.txt)
    • "image/gif": image in GIF format (*.gif)
    • "image/jpeg": image in JPEG format (*.jpg, *.jpeg)
    • "video/mpeg": video in MPEG format (*.mpg, *.mpeg)
  • Versions 22 and later
    MIME type corresponding to one of the following constants:
    Versions 22 and later
    typeMimeXMLApplication
    New in version 22
    typeMimeXMLApplication
    typeMimeXMLApplication
    XML content.
    Versions 22 and later
    typeMimeBinary
    New in version 22
    typeMimeBinary
    typeMimeBinary
    Binary content (byte stream).
    Versions 22 and later
    typeMimeDOC
    New in version 22
    typeMimeDOC
    typeMimeDOC
    Content such as Word file (*.doc)
    Versions 22 and later
    typeMimeDOCX
    New in version 22
    typeMimeDOCX
    typeMimeDOCX
    Content such as Word file (*.docx)
    Versions 22 and later
    typeMimeGIF
    New in version 22
    typeMimeGIF
    typeMimeGIF
    Content such as Image in GIF format (*.gif)
    Versions 22 and later
    typeMimeHTML
    New in version 22
    typeMimeHTML
    typeMimeHTML
    Content such as HTML page (*.htm, *.html)
    Versions 22 and later
    typeMimeJPEG
    New in version 22
    typeMimeJPEG
    typeMimeJPEG
    Content such as image in JPEG format (*.jpg, *.jpeg)
    Versions 22 and later
    typeMimeJSON
    New in version 22
    typeMimeJSON
    typeMimeJSON
    JSON content.
    Versions 22 and later
    typeMimePDF
    New in version 22
    typeMimePDF
    typeMimePDF
    Content such as PDF document (*.pdf)
    Versions 22 and later
    typeMimePNG
    New in version 22
    typeMimePNG
    typeMimePNG
    Content such as image in JPEG format (*.png)
    Versions 22 and later
    typeMimeSOAP
    New in version 22
    typeMimeSOAP
    typeMimeSOAP
    SOAP content in XML format.
    Versions 22 and later
    typeMimeText
    New in version 22
    typeMimeText
    typeMimeText
    Content in text format (*.txt)
    Versions 22 and later
    typeMimeXMLText
    New in version 22
    typeMimeXMLText
    typeMimeXMLText
    Text content in XML format
    Versions 22 and later
    typeMimeXLS
    New in version 22
    typeMimeXLS
    typeMimeXLS
    Content in Excel format (*.xls)
    Versions 22 and later
    typeMimeXLSX
    New in version 22
    typeMimeXLSX
    typeMimeXLSX
    Content in Excel format (*.xlsx)
    Versions 22 and later
    typeMimeZIP
    New in version 22
    typeMimeZIP
    typeMimeZIP
    Content in ZIP format (*.zip)
    New in version 22
    MIME type corresponding to one of the following constants:
    Versions 22 and later
    typeMimeXMLApplication
    New in version 22
    typeMimeXMLApplication
    typeMimeXMLApplication
    XML content.
    Versions 22 and later
    typeMimeBinary
    New in version 22
    typeMimeBinary
    typeMimeBinary
    Binary content (byte stream).
    Versions 22 and later
    typeMimeDOC
    New in version 22
    typeMimeDOC
    typeMimeDOC
    Content such as Word file (*.doc)
    Versions 22 and later
    typeMimeDOCX
    New in version 22
    typeMimeDOCX
    typeMimeDOCX
    Content such as Word file (*.docx)
    Versions 22 and later
    typeMimeGIF
    New in version 22
    typeMimeGIF
    typeMimeGIF
    Content such as Image in GIF format (*.gif)
    Versions 22 and later
    typeMimeHTML
    New in version 22
    typeMimeHTML
    typeMimeHTML
    Content such as HTML page (*.htm, *.html)
    Versions 22 and later
    typeMimeJPEG
    New in version 22
    typeMimeJPEG
    typeMimeJPEG
    Content such as image in JPEG format (*.jpg, *.jpeg)
    Versions 22 and later
    typeMimeJSON
    New in version 22
    typeMimeJSON
    typeMimeJSON
    JSON content.
    Versions 22 and later
    typeMimePDF
    New in version 22
    typeMimePDF
    typeMimePDF
    Content such as PDF document (*.pdf)
    Versions 22 and later
    typeMimePNG
    New in version 22
    typeMimePNG
    typeMimePNG
    Content such as image in JPEG format (*.png)
    Versions 22 and later
    typeMimeSOAP
    New in version 22
    typeMimeSOAP
    typeMimeSOAP
    SOAP content in XML format.
    Versions 22 and later
    typeMimeText
    New in version 22
    typeMimeText
    typeMimeText
    Content in text format (*.txt)
    Versions 22 and later
    typeMimeXMLText
    New in version 22
    typeMimeXMLText
    typeMimeXMLText
    Text content in XML format
    Versions 22 and later
    typeMimeXLS
    New in version 22
    typeMimeXLS
    typeMimeXLS
    Content in Excel format (*.xls)
    Versions 22 and later
    typeMimeXLSX
    New in version 22
    typeMimeXLSX
    typeMimeXLSX
    Content in Excel format (*.xlsx)
    Versions 22 and later
    typeMimeZIP
    New in version 22
    typeMimeZIP
    typeMimeZIP
    Content in ZIP format (*.zip)
    MIME type corresponding to one of the following constants:
    Versions 22 and later
    typeMimeXMLApplication
    New in version 22
    typeMimeXMLApplication
    typeMimeXMLApplication
    XML content.
    Versions 22 and later
    typeMimeBinary
    New in version 22
    typeMimeBinary
    typeMimeBinary
    Binary content (byte stream).
    Versions 22 and later
    typeMimeDOC
    New in version 22
    typeMimeDOC
    typeMimeDOC
    Content such as Word file (*.doc)
    Versions 22 and later
    typeMimeDOCX
    New in version 22
    typeMimeDOCX
    typeMimeDOCX
    Content such as Word file (*.docx)
    Versions 22 and later
    typeMimeGIF
    New in version 22
    typeMimeGIF
    typeMimeGIF
    Content such as Image in GIF format (*.gif)
    Versions 22 and later
    typeMimeHTML
    New in version 22
    typeMimeHTML
    typeMimeHTML
    Content such as HTML page (*.htm, *.html)
    Versions 22 and later
    typeMimeJPEG
    New in version 22
    typeMimeJPEG
    typeMimeJPEG
    Content such as image in JPEG format (*.jpg, *.jpeg)
    Versions 22 and later
    typeMimeJSON
    New in version 22
    typeMimeJSON
    typeMimeJSON
    JSON content.
    Versions 22 and later
    typeMimePDF
    New in version 22
    typeMimePDF
    typeMimePDF
    Content such as PDF document (*.pdf)
    Versions 22 and later
    typeMimePNG
    New in version 22
    typeMimePNG
    typeMimePNG
    Content such as image in JPEG format (*.png)
    Versions 22 and later
    typeMimeSOAP
    New in version 22
    typeMimeSOAP
    typeMimeSOAP
    SOAP content in XML format.
    Versions 22 and later
    typeMimeText
    New in version 22
    typeMimeText
    typeMimeText
    Content in text format (*.txt)
    Versions 22 and later
    typeMimeXMLText
    New in version 22
    typeMimeXMLText
    typeMimeXMLText
    Text content in XML format
    Versions 22 and later
    typeMimeXLS
    New in version 22
    typeMimeXLS
    typeMimeXLS
    Content in Excel format (*.xls)
    Versions 22 and later
    typeMimeXLSX
    New in version 22
    typeMimeXLSX
    typeMimeXLSX
    Content in Excel format (*.xlsx)
    Versions 22 and later
    typeMimeZIP
    New in version 22
    typeMimeZIP
    typeMimeZIP
    Content in ZIP format (*.zip)
<Name of File for Backup>: Optional character string (with quotes)
Name of file to save if the Web user wants to download the file onto his computer. If this parameter is specified, the file download is automatically proposed.
Remarks
WEBDEV - Server codeWindows

Difference with FileDisplay

This function is equivalent to FileDisplay but the source used in a memory string (instead of a file).
PHP

Use in PHP

In PHP, the traces displayed in the page by Trace are also displayed by StringDisplay. Indeed, all the page codes are run before displaying the page: the traces are taken into account by StringDisplay.
Versions 20 and later

Cached sessions

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

Cached sessions

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.

Cached sessions

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
Linux wd230page.so
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment