Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> wslogindateget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSLoginDateGet()
------------------------------------------------------------------------------
 Purpose:
 Get the date a user logged in at a workstation.

 Syntax:
 lpszLogDate = WSLoginDateGet( iConnNum )

 Parameters:
 iConnNum The station number.

 Returns:
 A character string of length 8 (see Notes).

 The CA-Clipper name for this function is:
 WSLogDteGet()

 Description:
 WSLoginDateGet() returns the login date of the user currently logged
 into station number iConnNum. If iConnNum is passed as the constant
 value NOVDEFINT, the current workstation connection number is assumed.

 Returns an empty string if an error occurs.

 Example:
 // To display the login date of the current user:
 lpszUserDate = WSLoginDateGet(NOVDEFINT)
 if ( !empty ( lpszUserDate ) )
    ? "Current user last logged in on", lpszUserDate
 endif
 // To display the login date of the user logged into station number 12:
 lpszUserDate = WSLoginDateGet( 12 )
 if ( !empty ( lpszUserDate ) )
    ? "The user on station 12 last logged in on",lpszUserDate
 endif

 Notes:
 The format of the date values is the ANSI style "yyyymmdd" except
 with CA-Clipper and CA-Visual Objects where the date values are of type
 DATE.

 If called for a connection where no one is logged in, WSLoginDateGet()
 returns the last login date at that workstation.

See Also: FSWSLogin() WSLoginTimeGet() WSLoginNameGet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson