Hi,
Iam facing one problem. I created one form and in that I put one label and one command button. I wrote the code in the command button as follows.
IF i = 0 THEN
REPEAT
CurrForm.Image.XPOS := i;
SLEEP(10);
i += 1;
UNTIL i = 10000;
when i click the command button the label is not moving slowly. once the loop is completed then only it is jumped from X position 0 to 10000. It is not moving slowly.
How can I show the label with slow movement.
Thanks in Advance,
Priya
0
Comments
Set the TimerInterval property of the form and put your logic in the OnTimer trigger.
NAV Developer
you could try a currform.updatecontrols or a currform.update
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
better is to use currform.update or currform.updatecontrol.
Agreed.
Thanks for your replies. I tried Currform.Update & Currform.Updatecontrols inside the loop. But it is not working in this case.
Regards,
Priya
http://www.mibuso.com/dlinfo.asp?FileID=424
NAV Developer