wait

Example 1: Sequencing events

Image_1.Show()
wait (1)
Image_1.Hide()
wait (1)
Image_2.Show()
wait (0.5)
Image_2.Hide

Example 2: Refreshing the screen

The wait function can be set to zero, which is often used to update the screen. For example, if you do this

for(;;)
{
 Image_1.Show()
 Image_1.Hide()
}

You may expect the image to flicker, however, the screen is not updated between the Show and Hide. To update the screen, use wait(0):

for(;;)
{
 Image_1.Show()
 Wait(0)
 Image_1.Hide()
}

Close