Link to home
Start Free TrialLog in
Avatar of sathya_sk
sathya_sk

asked on

Network Id in powerbuilder 5.0

How to find Network ID in powerbuilder 5.0 ?
Avatar of sajuks
sajuks

Check http://www.funcky.com/ .
Got lots of features which you can use.
ASKER CERTIFIED SOLUTION
Avatar of gajender_99
gajender_99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think it is either computername or username you are looking for:

From Sybase:

GetUserNameA( )
This function returns the current users logon name. Be sure to allocate enough space for the string or you'll get a GPF when you exit PowerBuilder. There is no PowerBuilder equivalent.

Global External Function:
FUNCTION boolean GetUserNameA(ref string uname, ref ulong slength) LIBRARY "ADVAPI32.DLL"

Script:
string ls_username
string ls_var
ulong lu_val
boolean rtn
lu_val = 255
ls_username = Space( 255 )
rtn = GetUserNameA(ls_username, lu_val)
Messagebox("GetUserNameA", "Username = " + string(ls_username))


HTH

Namasi Navaretnam