Approach User Support homepage Approach User Support
Answers to Frequently Asked Questions about Lotus Approach
Examples LotusScripts
Example databases
Links to other Lotus Approach support services

[Return to contents]

Example LotusScript: Find the current network ID No.2

Last updated: before December, 1998

The following script was submitted to the Approach Users Mailing List by Bill Tarkulich

Using Win32 API "getusername", he did it this way:

Declare Function GetUserName& Lib "advapi32.dll" Alias "GetUserNameA" (Byval _
lpBuffer As String, nSize As Long)
Dim results As Long
Dim Patha As String *200
results = GetUserName(Patha,pathlen)

[Return to contents]

© Copyright, JohnBrown, Trademarks, Disclaimer, Acknowledgements.