Progressbar:advance(step) method


Advances the Progressbar position for the amount of the specified step value.

Return value

This function returns no value.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Progressbar.range sample", 320, 200) local pb = ui.Progressbar(win) win:status("") pb:center() win:show() -- update user interface and increase Progressbar progression repeat pb:advance(1) win:status("Step ".. pb.position) ui.update() until pb.position == 100