PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
AlternativeText (Property)
In french: TexteAlternatif
The Property AlternativeText allows you to know and modify the alternative text of the fields on the page.
Example
// Displays the product image from the Product data file
IMG_Product = Product.Image
IMG_Product.AlternateText = Product.Name
Syntax

Finding out the alternative text associated with the control Hide the details

<Result> = <Control used>.AlternativeText
<Result>: Character string
Alternative text of control.
<Control used>: Control name
Name of control whose alternative text is requested. This control can be:
  • an Image control or a clickable image,
  • a Captcha control,
  • a Thumbnail control,
  • a Bar Code control,
  • a Chart control.

Modifying the alternative text associated with the control Hide the details

<Control used>.AlternativeText = <Alternative text>
<Control used>: Control name
Name of control to use. This control can be:
  • an Image control or a clickable image,
  • a Captcha control,
  • a Thumbnail control,
  • a Bar Code control,
  • a Chart control.
<Alternative text>: Character string with quotes
New alternative text of the control. This text is a simple text, without HTML tags.
Remarks
  • This Property is equivalent to the Property Libellé on the fields Image, Image clickable, Captcha, Thumbnail, Barcode and Graph.
  • The alternative text of an image ("alt" attribute in HTML) indicates the text displayed by the browser when the image is not available. This text is also used instead of the image for the accessibility of pages.
  • The alternative text can also be defined in the editor in the description window of the control. For example:
    • in the "Help" tab for Image, Bar Code, and Thumbnail controls,
    • in the "Details" tab for Captcha controls,
    • in the "UI" tab for Chart controls.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment