Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - InitSession.Caption As Text
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedInitSession.Caption As Text

 Post Reply Post Reply
Author
Message
tompc View Drop Down
Newbie
Newbie


Joined: November 03 2010
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote tompc Quote  Post ReplyReply Direct Link To This Post Topic: InitSession.Caption As Text
    Posted: October 03 2016 at 5:40am
Pete,
 
I want to capture InitSession.Caption in a Unidata variable so I can extract a string from it.
 
Tried a bunch of things, but I'm not getting what I want.
 
Please help.
 
Tom Cordes
GFM Project
Tom - Unidata
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: October 03 2016 at 10:04am
Hi Tom -

You need to use a script to send this property back to the host:
SCRIPT = 'InitSession.Output InitSession.Caption & Chr(13)'
PRINT ESC:STX:'P':SCRIPT:CR:
INPUT ANS

Normally, the Caption property is null, and the session file name is used as the caption.

Thanks,

Pete
Back to Top
tompc View Drop Down
Newbie
Newbie


Joined: November 03 2010
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote tompc Quote  Post ReplyReply Direct Link To This Post Posted: October 03 2016 at 1:11pm
Thanks, Pete.  Of course, I had it backwards - output after caption, instead of before.
 
TomC
Tom - Unidata
Back to Top
tompc View Drop Down
Newbie
Newbie


Joined: November 03 2010
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote tompc Quote  Post ReplyReply Direct Link To This Post Posted: October 04 2016 at 5:22am
Worked great, Pete.  Thanks much for your  help.Smile
 
TomC
Tom - Unidata
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.