Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: reading and setting socket options
How to enable the SE_SHUTDOWN_NAME privilege for the application
HOWTO: Use the Win32 API to Access File Dates and Times
Terminating all running applications from a VFP program
Converting Unicode data from the Clipboard to a character string using a given code page
Creating irregularly shaped FoxPro form using transparency color key
How to adjust monitor brightness (Vista, monitor with DDC support)
Loading a string resource from an executable file
Start an executable from VFP application by using the CreateProcess
Creating a window using CreateWindowEx function
Downloading files from the FTP server using InternetReadFile
Obtaining information about all user accounts on a server (WinNT only)
Retrieving file information for the VFP executable running
Subclassing CommandButton control to create BackColor property
Displaying dimmed window behind VFP top-level form
GDI+: Storing content of the Clipboard to a bitmap file
How to make the caption of a VFP application flashing in the Windows task bar
Storing screen shot of a form to bitmap file
WAV file player
Creating the Open dialog box to specify the drive, directory, and name of a file to open
GDI+: how to make VFP controls visually shake and shudder
Reading entries from Event logs
Splash Screen for the VFP application
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Converting characters to upper or lower case

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
 
DECLARE INTEGER CharLower IN user32 STRING @ lpsz
DECLARE INTEGER CharUpper IN user32 STRING @ lpsz
 
lcText = "Jack and Jill went up the hill"
 
? CharLower (@lcText)
? lcText
 
? CharUpper (@lcText)
? lcText
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
218 bytes  
Created: 2001-07-31 12:00:00  
Modified: 2001-09-28 16:45:23  
Visits in 7 days: 43  
Listed functions:
CharLower
CharUpper
Printer friendly API declarations
My comment:
Both these functions work slower then the native VFP case converting functions. At least I have found them to be slower on my computer comparing their performance on long cycles.

The only reason that I can see in using these functions is passing the parameter by a reference.

Also there may be some flavours from the side of Unicode strings. I"m not sure at this point.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (184.73.7.143)
4 sec.Function: 'WNetCloseEnum'
Function group: 'Windows Networking'
6.95 min.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
6.98 min.Function: 'RtlCompressBuffer'
7.05 min.Function: 'DrawAnimatedRects'
1.83 hrs.Example: 'Copying files as a transacted operation (Vista)'
 Example: 'Minimizing all running applications'
1.95 hrs.Function: 'GetProcAddress'
Function group: 'Dynamic-Link Library'
 Example: 'Retrieving the priority class for the current process'
 Example: 'Creating irregularly shaped FoxPro form using transparency color key'
3.01 hrs.Example: 'Connecting a local device to a network resource'
Google
Advertise here!