Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CNEXT - CATScriptErrorMessages - ScriptingERR_1002 1

Status
Not open for further replies.

man2007

Aerospace
Nov 6, 2007
283
IN
I get the error "CNEXT - CATScriptErrorMessages - ScriptingERR_1002" even for a simple program like

Sub CATMain()
Dim CATProdDoc As ProductDocument
End Sub

I saved the above code as example.catvbs. If I save it as CATScript the program runs fine. I get errors for any Declarations. Above is one example.

Looks like I am missing some basic information.
 
Replies continue below

Recommended for you

Got the solution. I commented out the statement
As ProductDocument
 
thanks for posting

Eric N.
indocti discant et ament meminisse periti
 
You typically need to comment out object types in vbscript, as it is a late-bound language.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top