![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
matadyshak
Newbie
Joined: March 11 2016 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: Accessing UserName from scriptPosted: 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
|
|
![]() |
|
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
matadyshak
Newbie
Joined: March 11 2016 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: March 18 2016 at 11:33am |
|
What are the SYSTEM() functions?
|
|
|
Michael Tadyshak
|
|
![]() |
|
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 |