Page 1 of 1

Msgbar Error

Posted: Fri May 27, 2022 9:44 am
by Silvio.Falconi
Image

I have a cicle do while and change the text on a msgitem
at left you'll see the progress at right the text on the msgitem

Do While !::oDbf:Eof()


....
::oBarProgress:SetPos( ::oBarProgress:nPos + 1 )
::oTabItem1:SetText( tran(::oBarProgress:nPos,'999999')+" di "+;
tran(::oDbf:KeyCount(),'999999'))

::oWinTabellone:oMsgBar:Refresh()

::oDbf:Skip(-1)

Enddo

It seem not refresh the text on msgitem

How I can resolve ?

Re: Msgbar Error

Posted: Fri May 27, 2022 4:22 pm
by Detlef
Hi Silvio,

it looks like you are skipping backwards Skip(-1)
You will never reach ::oDbf:Eof()

Re: Msgbar Error

Posted: Fri May 27, 2022 5:16 pm
by Silvio.Falconi
Detlef wrote:Hi Silvio,

it looks like you are skipping backwards Skip(-1)
You will never reach ::oDbf:Eof()


Image

Yes but It Is not the problem, that was only a sample to show I 'm making

I mean the text Is overwrite and not refresh look the image