I have some stupid problem with WaitFunc. I can't put in it function with any argument. For example:
Simba Code:Function MyFunction: Boolean;
Simba Code:WaitFunc(@MyFunction,100,1000);
Compiled well. But if I add any argument to function:
Simba Code:Function MyFunction(a:integer): Boolean;
Simba Code:WaitFunc(@MyFunction(3),100,1000);
Type mismatch error.
Also I tried:
Simba Code:WaitFunc((@MyFunction(3)),100,1000);Simba Code:WaitFunc(@(MyFunction(3)),100,1000);
Neither works. How to do that?



Reply With Quote




