The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
Using Class Modules in AccuTerm |
Post Reply |
Author | ||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: April 02 2019 at 6:48pm |
|
I am having some issues implementing a class module withing the 'AccuTerm Macros.atsc' code module.
At the top of the module, I use the following line to reference a class module:
This should now allow me to use this class module in my project, something like:
and access the class' methods and properties. This works to the extent of when I right click the module tab > Sheet > Open Uses, it brings up the class module I referenced and I can see all the code in the IDE. However, I am immediately greeted with an error: It appears that I somehow need to set the class' "Caption" property and I spent a few hours on Google trying to figure it out. GetMacroCaption appears to be an event to the IDE itself, and it seems to fire when I try to view the code of the class module. I have read this topic: http://www.winwrap.com/web2/basic/#!/ref/COM-doc_getmacrocaption_event.htm and it didn't help me. The code in the class itself doesn't seem to be the problem, as I've even tried using the example class in the AccuTerm Language Reference Manual under section 1.3.1.1 (Page 10). Any ideas how I can implement my class into my project?
|
||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
|
|
Some progress has been made.
It appears that in the script editor, it only expects to have 2 open modules simultaneously. Every time I open AccuTerm, there is the 'viewscript.atsc' script that runs and it also opens the Macro 'AccuTerm Macro Script [AccuTerm Macros.atsc]'. When these two remain open, and I click "Open Uses" and open a third and make it active, the above error occurs. However, when I close down the 'viewscript.atsc' window (now I only have 1 visible module), then perform the same action of opening uses, the error is non existent. This now makes some sense on the error itself: Subscript out of range. The range is '2', but I have 3 modules open. Now I am needing to figure out how to overcome this issue. Is it possible to "open uses" when the AccuTerm instance starts thus allowing it to expect all 3 modules? Side note: When I don't have the class module open ("Open Uses"), it still references the class but I lose IntelliSense and I am unable to modify the class code in the editor; so the code within the class does work.
|
||
TonyG
Beta Tester Joined: February 04 2004 Location: United States Status: Offline Points: 127 |
Post Options
Thanks(0)
|
|
Just bumping this thread with a few random thoughts...
1) It sucks that we don't see more discussions like this, about using AccuTerm in more sophisticated ways, with external components, solving real-world problems using what people still often call "the old DOS system". 2) I'm surprised no one from Zumasys responded. I'm guessing Pete or someone else there simply missed this thread. 3) AccuTerm2K3? Time to update! The problem described might have been solved 15 years ago. :) 4) PBX caught my attention. Are you doing some integration with a phone system? I've been doing this for years but in the Pick world, unlike the rest of the world, for some reason no one seems to care. So I'm curious about the high-level business case, and what tools you're using to approach specific phone/PBX challenges. |
||
Tony Gravagno Nebula Research & Development
TG@ Nebula-RnD . com http://Nebula-RnD.com/blog http://Twitter.com/TonyGravagno http://groups.google.com/group/mvdbms https://www.linkedin.com/groups/64935 |
||
kbdav
Newbie Joined: July 12 2016 Status: Offline Points: 23 |
Post Options
Thanks(0)
|
|
Thanks for your interest, TonyG.
For your point # 3, I have tested this on newest version of AccuTerm as well and I received the same results. And on # 4 - Yes, I have integrated this into our web based PBX software. It's not very pretty because it it contains no APIs for us to use, so I was left with using IE and web elements. It's nothing special so if you wanted to take a look at this class I will add the code below.
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |