#Shell (x$, 3) Fixed
05-Oct-91 13:40:50
Sb: #1517-#Shell (x$, 3) Fixed
Fm: Keith Funk/Vanc.BC,CAN. 72240,2020
To: Costas Kitsos 73667,1755
Hi Costas,
Well Ted found the perfect work around to the shell problem. Just disable
the command button while the shell command is executing.
I found another work around that I thought I'd mention so you can add it to
the collection of bizarre VB behaviors.
Command1_Click()
'''On Error Resume Next
For i% = 1 To 5
x% = Shell("c:\command.com /c dir c:\*.*",1)
y% = DoEvents()
'''a! = 1
Next i%
End Sub
The above code causes a UAE. But if you uncomment the a! = 1 statement, you
get an illegal function call at that line. BUT, if you uncomment the On
Error Resume Next, the illegal function call is bypassed *AND* the UAE's
don't occur either! Isn't that a hole in the boat!<g>
So now I guess I can get back to looking at the new AutoCAD QuickBASIC
Interface.
KeithF
There is 1 Reply.