Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

ProgressSetPhaseCount Function

Overview

The ProgressSetPhaseCount function allows progress updating to occur in phases in a progress window. The update value is still 0-100% for each phase, but this relieves the script from having to calculate the bar position during multi-phase operations.

Syntax/Parameters

Syntax

int = ProgressSetPhaseCount ( int phases );

Parameters

phases

An int containing the number of phases into which progress should be divided.

Return Value

Returns an int as ERROR_NONE on success or -1 on error. Use the GetLastError function to retrieve error information..

Remarks

Use the ProgressSetPhase function to advance one or more phases. Note that the progress bar will not advance unless the ProgressUpdate function is called.

If no progress window is open or if the progress window is owned by another process when the ProgressSetPhaseCount function is called, the GetLastError function will return ERROR_SOFT.

Programmers should use caution setting or changing phases when the progress window belongs to the application. See AttachApplicationProgress.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic