Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rewinding Through Records
Message
From
17/05/1998 05:22:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
16/05/1998 10:12:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00099920
Message ID:
00099968
Views:
23
>In your prev and next buttons put something like this
* Prev.Mousedown event
>if nButton = 1
>  now = seconds()
>  do while !bof() and mdown()
>    if seconds() - now > 1
>	skip -1
>	thisform.refresh
>* Update other nav buttons as necessary
>	now = seconds()
>    endif
>  enddo
>endif
Cetin

One thing about checking for seconds() - don't test this approach around midnight. I've actually had it once, when the value of Now was something less than a second before midnight, and the seconds() reset itself to a little above zero. Never went out of the loop.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform