Article ID: 191967
Article Last Modified on 8/6/1999
DEFINE CLASS MTSServer as Custom OLEPUBLIC
oAPPServer = .NULL.
oObjectContext = .NULL.
cErrorMsg = ""
FUNCTION FastHit
RETURN "Done. " + TIME()
ENDFUNC
FUNCTION SlowHit
LPARAMETER lnSecs
lnSecs=IIF(type("lnSecs")="N",lnSecs,5)
THIS.oAppServer = CREATEOBJECT("MTXaS.Appserver.1")
THIS.oObjectContext = THIS.oAppServer.GetObjectContext()
lcOutput = ""
FOR x = 1 to lnSecs * 300000
i=1
ENDFOR
THIS.oObjectContext.SetComplete()
RETURN lcOutput + "Done waiting for "+STR(lnSecs)+" secs"
ENDFUNC
FUNCTION Error
LPARAMETER lnErrorNo, lcCode, lnLine
THIS.cErrorMsg = THIS.cErrorMsg + STR(lnErrorNo)+ " - " ;
+ STR(lnLine) + " " + lcCode + " - " +Message()
ENDFUNC
ENDDEFINE
o=create("vfpmts.mtsserver")
? o.SlowHit(35)
In Session two run the following code from the Command window:
o=create("vfpmts.mtsserver")
? o.FastHit()
Make sure you run the call to FastHit after SlowHit starts.
Additional query words: kbVFp600 kbCOMt kbMTS
Keywords: kbprb kbcode KB191967