Navigation: Ultimate Suite for PowerBuilder Help > Command Button > Functions >

SetProgress

Send comments on this topic.

 

Description:

Sets a progress indicator directly onto the button.

Syntax:

SetProgress(integer ai_percent)
SetProgress(integer ai_percent, boolean ab_forceredraw)

Argument

Description

ai_percent

A percentage of progress represented as an integer. Value values are 0 to 100.

ab_forceredraw (Optional)

Optional parameter used to prevent redrawing of the button. Pass FALSE to prevent redrawing. Use this parameter if you're setting multiple properties on the button.

Return Value:

Always returns zero.

Usage:

cb_1.SetProgress(50)


Copyright © 2021 Werysoft Inc.