PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The WorkingDirectory property is used to:
  • identify or change the directory used by the HTML Editor control to store the images and CSS sheets of an HTML page.
  • identify the directory used by the HTML Display control to store the images and CSS sheets of an HTML page.
  • Versions 27 and later
    AndroidiPhone/iPad identify or change the directory used by the Camera control to store videos and photos.
    This property can only be used on Camera controls that are not in "Version-26-compatible mode".
    New in version 27
    AndroidiPhone/iPad identify or change the directory used by the Camera control to store videos and photos.
    This property can only be used on Camera controls that are not in "Version-26-compatible mode".
    AndroidiPhone/iPad identify or change the directory used by the Camera control to store videos and photos.
    This property can only be used on Camera controls that are not in "Version-26-compatible mode".
Android The WorkingDirectory property is used only to identify the directory used by the HTML Display or HTML Editor control to store the images and CSS sheets of an HTML page.
Remarks:
  • HTML Editor control: when the control is used, a working directory is automatically created. This directory is deleted when the window or application is closed.
  • HTML Display control: when HTMLFromEmail is used, a working directory is automatically created to save the images associated with the email. This directory is deleted when the window or application is closed.
  • Versions 27 and later
    AndroidiPhone/iPad Camera control: when the control is used, a file save directory is assigned. By default, this directory is located in the application's private directory on the external storage.
    New in version 27
    AndroidiPhone/iPad Camera control: when the control is used, a file save directory is assigned. By default, this directory is located in the application's private directory on the external storage.
    AndroidiPhone/iPad Camera control: when the control is used, a file save directory is assigned. By default, this directory is located in the application's private directory on the external storage.
Example
// Copy an image to the directory and insert it into the document
fCopyFile("logo.png", CompleteDir(HTMEDT_NoName1.WorkingDirectory) + "logo.png")
HTMEDT_NoName1.Insert("<img src='logo.png'>")
Syntax

Identifying the directory used by the control to store files Hide the details

<Result> = <Control used>.WorkingDirectory
<Result>: Character string
  • HTML Editor control: Directory used by the HTML Editor control to store files (images, CSS sheets, etc.).
  • HTML Display control: Directory used by the HTML Display control. If the URL associated with the control is a file, the WorkingDirectory property returns the corresponding directory, otherwise it returns an empty string ("").
  • Versions 27 and later
    AndroidiPhone/iPad Camera control: Directory used by the Camera control to store videos and photos.
    New in version 27
    AndroidiPhone/iPad Camera control: Directory used by the Camera control to store videos and photos.
    AndroidiPhone/iPad Camera control: Directory used by the Camera control to store videos and photos.
<Control used>: Control name
Name of the control used:
  • HTML Editor control,
  • HTML Display control.
  • Versions 27 and later
    AndroidiPhone/iPad Camera control.
    New in version 27
    AndroidiPhone/iPad Camera control.
    AndroidiPhone/iPad Camera control.

Modifying the directory used by the HTML Editor control to store files (images, CSS sheets, etc.) Hide the details

<HTML Editor control>.WorkingDirectory = <New directory>
<HTML Editor control>: Control name
  • WindowsiPhone/iPad Name of the HTML Editor control used.
  • Versions 27 and later
    AndroidiPhone/iPad Camera control.
    New in version 27
    AndroidiPhone/iPad Camera control.
    AndroidiPhone/iPad Camera control.
<New directory>: Character string
Directory used to store:
  • WindowsiPhone/iPad files from the HTML Editor control (images, CSS sheets, etc.).
  • Versions 27 and later
    AndroidiPhone/iPad files from the Camera control (photos, videos).
    New in version 27
    AndroidiPhone/iPad files from the Camera control (photos, videos).
    AndroidiPhone/iPad files from the Camera control (photos, videos).
Remarks
  • Images or CSS stylesheets with a file URL (i.e. starting with "file:///") cannot be displayed by default when editing in the HTML Editor control.
  • To display images or CSS style sheets with a file URL (i.e. starting with "file:///"), these files must:
    • be located in the directory specified with the WorkingDirectory property.
    • be relative. For example: <img src='myLogo.png' ...
  • This directory is initialized with a temporary directory. This directory is deleted when the window or application is closed. For HTML Editor controls, it can be changed with the WorkingDirectory property. In this case, the specified directory is not deleted.
  • The option in the HTML Editor control ribbon that allows you to insert images into the page automatically copies the images to this directory.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment