Code: Select all
FOR i := 0 TO 10
IF '_EDITPROTECTED' $ ProcName(i)
Break(oError)
ENDIF
NEXT
Code: Select all
FOR i := 0 TO 10
IF '_EDITPROTECTED' $ ProcName(i)
Break(oError)
ENDIF
NEXT
Same here. Slight changes:I put this at the beginning of my error handler and it fixed the issue.
Code: Select all
IF IsWTSClientSession()
FOR i := 0 TO 10
IF '_EDITPROTECTED' $ ProcName(i)
Break(oError)
ENDIF
NEXT
ENDIF
* Somewhere else:
// Check whether the current process runs in a Remote Desktop session.
FUNCTION IsWTSClientSession()
RETURN (GetSystemMetrics(SM_REMOTESESSION) <> 0)
Moral of this joke: Experience and knowledge are priceless.A large ship was docked in the port of Antwerp. The engines would not start and every day this breakdown cost tens of thousands of euros. All the engineers were called in and no one found the solution.
The last hope was an old engineer who was asked to look into the problem. He went into the machine room and turned one screw 180 degrees. He asked to try again and the engines started.
The captain asked for the bill and the engineer said 5,000 euros.
The captain asked: do I have to pay 5,000 euros for 5 minutes of work.
The engineer replied: No, the work is 100 euros, the years of knowledge to know which screw caused the problem is 4,900 euros.
This solution reminds me of a joke.
This is true.To be clear, the solution of Roger is not a joke, it is simple and efficient.
Democracy is a workaround.so this was really a workaround.
Very well said.Democracy is a workaround.