Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

@station in Arev32 (OpenInsight 32-bit Specific)

At 07 JUL 2008 12:27:59PM Mat Kelly wrote:

I am running OI/Arev32 on a server as a service and launching it through a shortcut on the user's PC. I would like to have logic tied to the machine the user is using (e.g. if launched from PC1, take code path 1, PC2 code path 2, etc). In Arev31 I used the @station variable to do this but Arev32 seems to always report the server name as the @station. Is there any way to resolve this to its previous behavior?

Thanks.


At 07 JUL 2008 12:53PM Richard Hunt wrote:

OI Ver 7.2.1, I am not sure if this will work in your situation… You could try using something like this…

    STRING=STR(CHAR(0),4096)
    COMPUTER=STRING
    SERVER=STRING
    SESSION=STRING
    REMOTE_NAME=STRING
    RESULT=GETENVIRONMENTVARIABLE('COMPUTERNAME':CHAR(0),COMPUTER,4096)
    RESULT=GETENVIRONMENTVARIABLE('LOGONSERVER':CHAR(0),SERVER,4096)
    RESULT=GETENVIRONMENTVARIABLE('SESSIONNAME':CHAR(0),SESSION,4096)
    RESULT=GETENVIRONMENTVARIABLE('USERNAME':CHAR(0),REMOTE_NAME,4096)

View this thread on the forum...