cancel
Showing results for 
Search instead for 
Did you mean: 

how to use SBO_Application.StatusBar.CreateProgressBar?

Former Member
0 Kudos

hi all,

I code SBO_Application.StatusBar.CreateProgressBar("test",100,false);

but when I run it ,the program die.

how to use this,if it need some code to end the CreateProgressBar?

thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dim oProgBar As SAPbouiCOM.ProgressBar ' progress bar

Dim ProgBarVal As Integer = 0

ProgBarVal = RS.RecordCount

oProgBar = B1Connections.theAppl.StatusBar.CreateProgressBar("Creating Commission Table ", ProgBarVal, True)

oProgBar.Value = 0

set your loop

ProgBarVal = oProgBar.Value

oProgBar.Value = ProgBarVal + 1

increment your loop

oProgBar.Stop()

System.Runtime.InteropServices.Marshal.ReleaseComObject(oProgBar)

oProgBar = Nothing

GC.Collect()

Answers (1)

Answers (1)

Former Member
0 Kudos

can someone give a sample?thanks