there is nothing wrong with the docs. It is saying you need to pass the AutoMidHandle function an integer variable or constant (which they have chosen to call enable, it could be called foo). The integer variable plainly must be 0 or 1 (False or True if your prefer typing :-)).
When you called AutoMidHandle(enable) BlitzMax made a local variable called "enable", initialised it to 0 and passed it into AutoMidHandle thus switching it off (or doing nothing if it was already off)! If you had put Strict at the top of your code, it would have told you that "enable" was an undeclared variable, in fact it would have said "identifier Enable not found".
Hope this helps your understanding of the issue even though you've solved the problem.
When you called AutoMidHandle(enable) BlitzMax made a local variable called "enable", initialised it to 0 and passed it into AutoMidHandle thus switching it off (or doing nothing if it was already off)! If you had put Strict at the top of your code, it would have told you that "enable" was an undeclared variable, in fact it would have said "identifier Enable not found".
Hope this helps your understanding of the issue even though you've solved the problem.