another probably simple question

This forum is for eXpress++ general support.
Post Reply
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

another probably simple question

#1 Post by BruceN »

I have an 'about' box that displays the number of 'active' users.
users := user_count()
@ 3.5, 40 dcsay str( users ) saysize 25 sayleft

That gives me a fixed value. That is, if another user logs in while the about box is open the value doesn't change.

How would I make that update say every 2 seconds?

I can see a function CheckUsers() , something like:

do while .t.
users := user_count()
sleep(200)
loop

but how would I call it so we don't get stuck in the loop and the code can get to the dcread?

thanks
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: another probably simple question

#2 Post by rdonnay »

Code: Select all

@ @ 3.5, 40 dcsay {||str( users )} saysize 25 sayleft

DCREAD GUI EVAL {||oTimer := DC_SetTimerEvent():new(200,{||DC_GetRefresh(GetList)})}

oTimer:destroy()
The eXpress train is coming - and it has more cars.

Post Reply