×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

CNEXT - CATScriptErrorMessages - ScriptingERR_1002

CNEXT - CATScriptErrorMessages - ScriptingERR_1002

CNEXT - CATScriptErrorMessages - ScriptingERR_1002

(OP)
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.

RE: CNEXT - CATScriptErrorMessages - ScriptingERR_1002

(OP)
Got the solution. I commented out the statement
As ProductDocument

RE: CNEXT - CATScriptErrorMessages - ScriptingERR_1002

thanks for posting

Eric N.
indocti discant et ament meminisse periti

RE: CNEXT - CATScriptErrorMessages - ScriptingERR_1002

You typically need to comment out object types in vbscript, as it is a late-bound language.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources