PrimalScript showing custom vbscript custom class

Use this forum to ask questions after your subscription maintenance expires or 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.
This topic is 14 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mors
Posts: 8
Last visit: Fri Feb 10, 2023 3:18 am

PrimalScript showing custom vbscript custom class

Post by mors »

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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript showing custom vbscript custom class

Post by Alexander Riedel »

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
Last visit: Fri Feb 10, 2023 3:18 am

PrimalScript showing custom vbscript custom class

Post by mors »

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
This topic is 14 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.