On Jun 01, 2006, at 5:17 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:

Hi there.

I'm new to realbasic, but not to programming in general.

I want to make a countdown timer, but for some reason, I can't get anything to display in my static
text box.  here is my code.

dim x as integer
dim xs as string

x=100
   while x>0
   x=x-2
   xs=cstr(x)
   statictext1.text=xs

        statictext1.refresh

wend

Any ideas? When I do a step through, I can see the value decrementing.

The static text needs to be explicitly told to refresh when you do this or you won't see any visual changes until the method or event exits
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to