PrimalScript showing custom vbscript custom class

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
mors
Posts: 8
Joined: Tue Jan 12, 2010 4:05 pm

PrimalScript showing custom vbscript custom class

Post by mors » Sun Feb 14, 2010 8:22 am

I have a vbscript custom class in it's own vbs file that I use for some VBscripts. By adding the file into a wsf tag I can access the class from the vbscript code fine. However I haven't found a way to be able to see the class object under the PrimalScript ide. I don't want to turn this into a full COM object and need to have it registered. Can I get Primalscript to show the class and available properties/methods in the object browser or some other side screen listing? I can open the vbs in the workspace and scroll through the code looking for the identifiers but would like something a little easier.

Thanksmors2010-02-14 16:06:34

User avatar
Alexander Riedel
Posts: 7001
Joined: Tue May 29, 2007 4:43 pm

PrimalScript showing custom vbscript custom class

Post by Alexander Riedel » Mon Feb 15, 2010 6:52 am

If you open a WSF file in PrimalScript you should see both PrimalSense and class information.


Assuming your WSF files contains a file called "includes.vbs" (the name doesn't matter) with a class as shown here:


PrimalSense should show up when using the class:


Likewise the class browser should display information about your classes and its members:


Please note that you must open the WSF file in workspace mode
for this to work.

Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
mors
Posts: 8
Joined: Tue Jan 12, 2010 4:05 pm

PrimalScript showing custom vbscript custom class

Post by mors » Mon Feb 15, 2010 7:32 am

Thanks. Class browser was what I was missing. Once I opened that window I saw what I was looking for.
mors2010-02-15 14:32:51