Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Message to internal Users
Message
 
To
12/06/2004 02:51:28
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00911581
Message ID:
00913469
Views:
18
Hi Mazahir,
I understood your question, what I do is keep a log in a table
with the user and/or computer ID, every time they start the application
I check a flag in the log table for that user and/or computer,
and then just perform a SQL statement against that table and send
the message to everybody in the list,
you can get the user name with :

DECLARE INTEGER GetUserName IN advapi32;
STRING @ lpBuffer,;
INTEGER @ nSize

lcMyName = SPACE(250)
lnMyByffer = 250

lnResult = GetUserName(@lcMyName,@lnMyBuffer)

?lcMyName




Good luck!

>hi luis
>thanks for ur reply.but i want to send messagve only thouse users
>which is currently loged inside my SYStem.
>
>reagrds
>Mazahir
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform