Execution Error

Execution Error

Anonymous
Not applicable
406 Views
1 Reply
Message 1 of 2

Execution Error

Anonymous
Not applicable
When I run the program prof_edit (in house VBA) using
(command "-vbarun" "prof_edit")
the program performs properly but I always get the error "Execution Error",
even tho the following code, which is the "Done" button, gives no errors:
procedure....
Open STRKEYFILEPATH For Output As #1
For icounter = 0 To inumcodes
strcurcode = CODE_array(icounter, 0)
For i = 1 To 5
strcurcode = strcurcode & "," & CODE_array(icounter, i)
Next
Print #1, strcurcode
Next
Close #1
End

The resultant file is fine. What have I done wrong?
--
Jon
0 Likes
407 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
My apologies: a search of the Autodesk Newsgroup Server reveals the words of
wisdom by Robert Bell.

Use Unload Me, rather than End.

Jon

"Jon Rasmussen" wrote in message
news:[email protected]...
> When I run the program prof_edit (in house VBA) using
> (command "-vbarun" "prof_edit")
> the program performs properly but I always get the error "Execution
Error",
> even tho the following code, which is the "Done" button, gives no errors:
> procedure....
> Open STRKEYFILEPATH For Output As #1
> For icounter = 0 To inumcodes
> strcurcode = CODE_array(icounter, 0)
> For i = 1 To 5
> strcurcode = strcurcode & "," & CODE_array(icounter, i)
> Next
> Print #1, strcurcode
> Next
> Close #1
> End
>
> The resultant file is fine. What have I done wrong?
> --
> Jon
>
>
0 Likes