[Lazarus] TDBRichEdit

Dave Coventry dgcoventry at gmail.com
Wed Dec 3 10:05:21 CET 2008


On Tue, Dec 2, 2008 at 11:02 PM, Andrea Mauri <andrea.mauri.75 at gmail.com> wrote:
>
> there is a way in order to get the real name of a linux/windows user?
> In order to get the login name (linux) I used:
>  Result.Name:= GetEnvironmentVariable('USERNAME');
>  if Result.Name = '' then
>    Result.Name:= GetEnvironmentVariable('USER');

That is exactly how we have been using it as well - for the last 4
years. No issues so far.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list