Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
CryptoAPI: Collection of Providers class
Enumerating forms supported by a specified printer
Enumerating MIDI output devices
GDI+: rotating images using matrix transformations
Reading entries from Event logs
Retrieving a handle to DLL and address of an exported function in it
Retrieving information specific to the current Time Zone
Retrieving list of files on the FTP directory
Setting the Window Region for a form
Using the GradientFill function
GDI+: converting text strings to images and saving in a graphics file
GDI+: how to make VFP controls visually shake and shudder
Minimizing all running applications
Retrieving configuration information for the specified server (Win98/Me)
Retrieving current settings for an ODBC connection
Retrieving the names of all sections in an initialization file
Using the Semaphore object
Using Video Capture: enumerating installed capture drivers
Winsock: how to retrieve the protocol information corresponding to a protocol number
Building a tree of subdirectories for a given path using FindFile functions
GDI+: Using Scale and Shear transformations
How to check whether the system is 32-bit or 64-bit
How to display the Print property sheet
How to find when the application started
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: 40  
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 (54.234.67.55)
2.85 hrs.Example: 'Winsock: connecting to a news server (NNTP, port 119)'
 Example: 'How to put a vertical text scrolling on the form (a movie cast)'
 Function: 'SetThreadDesktop'
6.84 hrs.Function: 'GdipShearMatrix'
6.85 hrs.Example: 'Creating a mailslot'
9.97 hrs.Function: 'GetWindowRgnBox'
Function group: 'Painting and Drawing'
 Example: 'How to display picture stored in enhanced-format metafile (*.emf)'
15.01 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
 Example: 'Storing screen shot of a form to bitmap file'
18.92 hrs.Function: 'NetApiBufferFree'
Google
Advertise here!