cancel
Showing results for 
Search instead for 
Did you mean: 

Progress bar doesn't show up

Former Member
0 Kudos

Hi folks!

I'm writing an Addon in SBO2005. Here is the code of the progress bar. This code worked well in SBO2004, but not now. Any suggestions?


            oForm = oSBOApplication.Forms.Item(FormId)

            oMatrix = oForm.Items.Item("NyFaktMtr").Specific
            oProgBar = oSBOApplication.StatusBar.CreateProgressBar("Vennligst vent...", oMatrix.RowCount, False)
            oProgBar.Value = 0
            For i = 1 To oMatrix.RowCount
                oProgBar.Value = i
            Next

            oProgBar.Stop()

View Entire Topic
Former Member
0 Kudos

The matrix has lines in it. I have replaced oMatrix.RowCount by a constant but nothign happens. No exception raises neither.

I use SBO2005 SDK PL 7

Former Member

Hi Jose,

I try your problem and the result has the same, I use the same version that you, and I found this workaround:

For i = 1 To 1000

aplicacion.StatusBar.SetText("ARRANCO", 0, SAPbouiCOM.BoStatusBarMessageType.smt_None)

oProgBar.Value = i

Next

I don't understand why, but work.

Regards.

BattleshipCobra
Contributor
0 Kudos

Setting the StatusBar using:

application.StatusBar.SetText("PBHACK", 0, SAPbouiCOM.BoStatusBarMessageType.smt_None); // Makes progressbar work

Worked to fix the progressbar for me.

Thanks!