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:
00735372
Views:
7
Mel,


> ... I get the error "Property INTERVAL is not a method or event."

Yupp! that was my fault. Sorry
DEFINE CLASS tmrAction as timer
nDelay   = 20
cCommand = ""
Enabled  = .F.
Interval = 0

PROCEDURE TIMER   &&  <--- !!!!
  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
That should work better <g>
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform