Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User-interface operation not allowed at this time. Why?
Message
 
To
21/11/2000 06:31:45
Wouter Schut
Www.Selectif.Nl/Www.Seweso-Systems.Com
Andelst, Netherlands
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00443995
Message ID:
00444085
Views:
18
>Why do I get this error:
>
>Error:2031
>Error message: User-interface operation not allowed at this time.
>Line of code with error: 600
>Line number of error: 9
>Program with error: DOS.SELECTIONEXISTS
>
>In this line:
>
>USE (THIS.SelDir + '\S_Seldef') IN 0 AGAIN ALIAS SelectionExists_Tmp
>
>Does it look I want any user interface here? What do I do wrong?
>
>The error above was catched with an error handler, so the line of code above does not want to display an error.....

Hi Wouter,

Probably the path to the table is wrong or table does not exist. Apparently VFP is trying to show the messagebox 'File c:\mypath\mytable.dbf does not exist' or 'Command contains unrecognzed phrase/keyword' and the direct visual interface operations are not allowed when coming from in-process COM code.
What is the content of This.SelDir at the moment? Does it contain a long filename (probably with spaces)?
You could use STRTOFILE() to write the content of THIS.SelDir to file just before your USE statement and see what's in exactly.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform