Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Installation & Setup
  New Posts New Posts RSS Feed - Accessing UserName from script
  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 LockedAccessing UserName from script

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


Joined: March 11 2016
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote matadyshak Quote  Post ReplyReply Direct Link To This Post Topic: Accessing UserName from script
    Posted: March 16 2016 at 11:39am
Is there a way to access the user name that is logged into Accuterm?
 
I see there is a Server.UserName property but that does not work in a script.
Michael Tadyshak
Back to Top
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post Posted: March 18 2016 at 1:11am
Well, you don't log into AccuTerm as such. Rather, you log into a multi-value database using AccuTerm.

The method of getting the username varies depending on which database you have logged into. For example, you can use the @LOGNAME variable in OpenQM, UniVerse, or UniData. You may also be able to use one of the SYSTEM() functions.

Note those functions return the name that you use to log into the SERVER. If you want the name by which you logged into the CLIENT PC (before you started AccuTerm), then you could use an AccuTerm script of:

  InitSession.Output Environ("USERNAME") & vbCr

HTH,

Brian
Back to Top
matadyshak View Drop Down
Newbie
Newbie


Joined: March 11 2016
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote matadyshak Quote  Post ReplyReply Direct Link To This Post Posted: March 18 2016 at 11:33am
What are the SYSTEM() functions?
Michael Tadyshak
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.