SlideShow.AddSlide

number SlideShow.AddSlide ( 

string ObjectName,

string FilePath,

number Position = -1 )

Description

Adds a slide to a slideshow object.

Parameters

ObjectName

(string) The name of the slideshow object.

FilePath

(string) The path to the image file you want to add. Click the browse button to select a file.

Note: The following image formats are supported in the slideshow object: JPG, BMP, TIFF, GIF, PhotoCD, Photoshop, WBMP, PNG, PCX, PAX, TLA, WMF, EMF, APM and TGA.

Position

(number) The 1-based position to add the new slide. Use -1 to add the slide to the end of the object's slideshow list.

Returns

(number) The 1-based position where the slide was added. If an error occurs, -1 is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions