Chapter 9 Accessing objects using VBScript


Specifying object type

When you create VB or VBA programs, it is strongly recommended to specify object type.

For example, you should use:

Dim cls As PdOOM.Class

Instead of:

Dim cls

If you do not specify object type, you may encounter problems when you execute your program and debugging can be really difficult.

Shortcuts

If the model contains shortcuts, we recommend to use the following syntax: Dim obj as PdCommon.IdentifiedObject.

If the target model is closed, you will get a runtime error.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.