Using Win32 functions in Visual FoxPro Image Gallery
String
..msdn
CharLower
CharToOem
CharUpper
OemToChar
StrCmpC
StrFormatByteSize
StrFromTimeInterval
StrToInt
StrToIntEx
StrTrim
Code examples:
String representation for disk or memory capacity
StrFormatByteSize
..msdn    Add comment     W32 Constants      Translate this page
Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size.
Code examples:
String representation for disk or memory capacity
Declaration:
PSTR StrFormatByteSizeA(
         DWORD dw,
  __out  PSTR pszBuf,
         UINT cchBuf
);

PWSTR StrFormatByteSizeW(
         LONGLONG qdw,
  __out  PWSTR pszBuf,
         UINT cchBuf
);

PTSTR StrFormatByteSize64(
         LONGLONG qdw,
  __out  PTSTR pszBuf,
         UINT cchBuf
);
FoxPro declaration:
DECLARE STRING StrFormatByteSizeA IN Shlwapi;
    INTEGER dw,;
    STRING @pszBuf,;
    INTEGER cchBuf

Parameters:
dw / qdw
[in] Numeric value to be converted.

pszBuf / pwszBuf
[out] Pointer to the converted string.

cchBuf
[in] Size of pszBuf, in characters.
Return value:
Returns the address of the converted string, or NULL if the conversion fails.
My comment:
See also: StrFormatByteSize64, StrFormatByteSizeEx, StrFormatKBSize
Word Index links for the StrFormatByteSize :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-08-15 12:00:00
Modified: 2011-01-24 12:31:48
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
11 sec.Function: 'WSACreateEvent'
1 min.Function: 'SQLBindCol'
1.22 min.Function: 'WNetGetLastError'
1.65 min.Function: 'SQLFreeEnv'
1.85 min.Function: 'sndPlaySound'
2.03 min.Function: 'waveInPrepareHeader'
2.22 min.Function: 'SetDoubleClickTime'
2.42 min.Function: 'WNetEnumResource'
2.6 min.Function: 'waveInReset'
2.97 min.Function: 'WNetCloseEnum'
Google
Advertise here!