Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
..msdn    Add comment     W32 Constants      Translate this page
Converts a time interval, specified in milliseconds, to a string.
Code examples:
Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)
int StrFromTimeInterval(
    LPTSTR pszOut,
    UINT cchMax,
    DWORD dwTimeMS,
    int digits

FoxPro declaration:
DECLARE INTEGER StrFromTimeInterval IN Shlwapi;
    STRING @ pszOut,;
       INTEGER  cchMax,;
       INTEGER  dwTimeMS,;
    INTEGER  digits
[out] Pointer to a character buffer that receives the converted string.

[in] Size of pszOut, in characters. If cchMax is set to zero, StrFromTimeInterval will return the minimum size of the character buffer needed to hold the converted string. In this case, pszOut will not contain the converted string.

[in] Time interval, in milliseconds.

[in] Maximum number of digits to be represented in pszOut.
Return value:
Returns the number of characters in pszOut, excluding the NULL terminator.
My comment:
An example of this function"s return: 3 hour 07 min 21 sec
Word Index links for the StrFromTimeInterval :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-08-15 12:00:00
Modified: 2001-11-26 16:03:11
Visited in last 7 days: 41
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
15 sec.Function: 'CommandLineToArgvW'
Function group: 'Process and Thread'
32 sec.Function: 'CeRapiGetError'
Function group: 'Remote Application Programming (RAPI)'
49 sec.Function: 'GetMenuContextHelpId'
Function group: 'Shell Functions'
1.1 min.Example: 'Vertical Label control'
1.43 min.Example: 'Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)'
1.72 min.Function: 'CeGetStoreInformation'
Function group: 'Remote Application Programming (RAPI)'
2 min.
Function group: 'System Shutdown'
2.32 min.
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
2.62 min.Function: 'GetUserName'
2.93 min.Example: 'Printing text with the Escape function'
Advertise here!