🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.visualbasic.ver3
Article #96

Re: Delaying

#96
From: Martin Trump
Date: Sat, 30 Jun 2001 17:33
33 lines
2551 bytes
In article <9hl0vo$en7$1@ctb-nnrp2.saix.net>, Daniel
<graceln@lantic.net> writes
>Hi.  Does anybody know how i can stop the program for a few milliseconds in
>a do..loop.  The pascal syntax is:
>
>delay(Time in millisends)
>
>does anybody know the visual basic equivalent for this.  If you do please
>email me at graceln@lantic.net

Daniel, if you're prepared to wait multiples of ~55msecs then try this.

In the General section of the Form...

Dim goflag as Boolean

'In the Form code when delay required

goflag=false
Timer1.Interval = ???
Timer1.Enabled = True
While not goflag: Doevents: Wend
Timer1.Enabled = False
'Continue here after the delay

Not the prettiest of code but might give you a start.

(Forwarded by e-mail)

Regards.

-- 
Martin Trump
Technical Details
Message-ID: <tLjqSWAO1gP7EwIW@wmeadow.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!194.72.9.40.MISMATCH!btnet-peer1!btnet-peer0!btnet!dispose.news.demon.net!news.demon.co.uk!demon!wmeadow.demon.co.uk!Martin
References: <9hl0vo$en7$1@ctb-nnrp2.saix.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10e5fa,ef996bab125da7ff
X-Google-Attributes: gid10e5fa,public
X-Google-Thread: 1053fc,ef996bab125da7ff
X-Google-Attributes: gid1053fc,public
X-Google-Thread: f7646,ef996bab125da7ff
X-Google-Attributes: gidf7646,public
X-Google-Thread: fec0a,ef996bab125da7ff
X-Google-Attributes: gidfec0a,public
X-Google-Thread: 105859,ef996bab125da7ff
X-Google-Attributes: gid105859,public
X-Google-Thread: 1023e1,ef996bab125da7ff
X-Google-Attributes: gid1023e1,public
X-Google-Thread: 107824,ef996bab125da7ff
X-Google-Attributes: gid107824,public
X-Google-Thread: 10916b,ef996bab125da7ff
X-Google-Attributes: gid10916b,public
X-Google-ArrivalTime: 2001-06-30 13:01:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!194.72.9.40.MISMATCH!btnet-peer1!btnet-peer0!btnet!dispose.news.demon.net!news.demon.co.uk!demon!wmeadow.demon.co.uk!Martin
From: Martin Trump <Martin@wmeadow.demon.co.uk>
Newsgroups: alt.comp.lang.visualbasic.ver3,alt.comp.lang.visulabasic.ver3,alt.lang.basic.compiler,alt.lang.powerbasic,dk.edb.programmering.basic,es.comp.lenguajes.visual-basic,fj.comp.lang.visualbasic,fr.comp.lang.basic,free.it.visual-basic,it.comp.lang.visu
Subject: Re: Delaying
Date: Sat, 30 Jun 2001 18:33:02 +0100
Organization: None
Message-ID: <tLjqSWAO1gP7EwIW@wmeadow.demon.co.uk>
References: <9hl0vo$en7$1@ctb-nnrp2.saix.net>
NNTP-Posting-Host: wmeadow.demon.co.uk
X-NNTP-Posting-Host: wmeadow.demon.co.uk:158.152.30.156
X-Trace: news.demon.co.uk 993931250 nnrp-14:24876 NO-IDENT wmeadow.demon.co.uk:158.152.30.156
X-Complaints-To: abuse@demon.net
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.01 U <srNun4HpPWd07zzlIIZQSgkIM0>
Lines: 33