Wiki Home

Wait For Ready State


Namespace: WIN_COM_API
FUNCTION WaitForReadyState(oBrowser,lnReadyState, lnMilliSeconds)
	LOCAL lnX
	IF EMPTY(lnReadyState)
		lnReadyState = 4
	ENDIF
	IF EMPTY(lnMilliSeconds)
		lnMilliSeconds = 4000
	ENDIF
	lnX = 0
	DO WHILE oBrowser.ReadyState != lnReadyState AND lnX < lnMilliSeconds
		DOEVENTS
		lnX = lnX + 1
		Sleep(1)
	ENDDO
	IF lnX < lnMilliSeconds
		RETURN .T. && Not timed out
	ENDIF
	RETURN .F.
ENDFUNC


Will capturing navigating events do the same? -- Anatoliy Mogylevets
( Topic last updated: 2007.03.18 10:42:35 AM )