TE Edit Control Java / HTML-JavaScript Help
Product page

TerPictAltInfo

Set or retrieve the alternate String for a picture.

boolean TerPictAltInfo( id, get, AltInfo)
int id;picture id
boolean get;true to retrieve the alternate string, false to set a new alternate string.
String AltInfo;

The new alternate name String for the picture when the get parameter is set to false.

If the 'get' parameter is set to 'true', the alternate picture information can be retrieved upon a successful return from this method as following:

if (tej.TerPictAltInfo(id,true,"")) {
  String AltInfo=tej.TerGetOutStr("Info")
}

Comment: The alternate String is saved using the 'alt' tag when the file is saved in the HTML format.

Return Value: This function returns true if successful.