Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser Control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00728982
Message ID:
00735346
Views:
8
Frank,

By chance I also needed this for a _WebBrowser. However, when creating the tmrAction object I get the error "Property INTERVAL is not a method or event." Do you have a suggestion on what I might be doing wrong?

Mel Cummings

>So what I do now is employ timers for that sort of stuff. I use a very simple one like this
DEFINE CLASS tmrAction as timer
nDelay   = 20
cCommand = ""
Enabled  = .F.
Interval = 0

PROCEDURE INTERVAL
  local lcCMD

  *-- Make sure the timer only fires once!
  this.enabled = .F.

  lcCMD = allt(this.cCommand)
  &lcCMD
ENDPROC

PROCEDURE SETTIMER(tcCommand as String, tnInterval as integer)
  local lnDelay
  lnDelay       = iif(vartype(tnDelay)="N", tnDelay, this.nDelay)

  this.cCommand = tcCommand

  this.Interval = lnDelay
  this.Enabled  = .T.
ENDPROC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform