As always, thanks for your help.
Denis
>Denis,
>One other person had this problem when pulling the method out of the class and running it as a seperate procedure. The problem is caused by the fact I mistakenly named the PrintWindow routine with the same name as the PrintWindow API call. Fox gets confused as to which one it is calling. This is the reason for the 'Too Few Arguments' error. The solution is to change the name of one of the PrintWindow's. The lastest version of my ScrnPrnt class File#94706 has this fix incorporated. If I remember correctly I used an alias in declaring the PrintWindow API call as the solution.
>
>The CLEAR DLLS is fixing the problem by removing the ambiguous PrintWindow. It could affect other parts of your code by clearing DLL's unexpectedly.
>
>
>>The fix was to add
>>
>>clear dlls
>>
>>just before the 'return' at the bottom of the PrintWindow procedure. I can now call this procedure as often as I need.
>>
>>Will this affect anything else I am doing?
>>
>>Denis Schuette
>>McElhaney Cattle Co.
>>
Dennis Schuette