Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Starting an external application in VFP using WinExec
How to ping a remote site using ICMP API calls
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
Storing screen shot of a form to bitmap file
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Confining Windows calculator inside the VFP main window
How to adjust monitor brightness (Vista, monitor with DDC support)
Storing screen shot of a form to enhanced metafile (*.emf)
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to create non-blocking Winsock server
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to set Creation Date/Time for a folder (WinNT)
How to display a user-defined icon in the MessageBox dialog
How to suspend or hibernate your system
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
How to make a VFP form fading out when released (GDI+ version)
How to put a vertical text scrolling on the form (a movie cast)
Testing serial ports
How to enumerate, add and delete shares on the local computer (WinNT/XP)
How to make application automatically close all documents it opened
Downloading files from the FTP server using InternetReadFile
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Printing Image File, programmatically set print page orientation to landscape
Sending email messages with Simple MAPI
Converting a decimal string to an integer

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
Versions:
click to open
 
DECLARE INTEGER StrToInt IN Shlwapi STRING lpSrc
DECLARE INTEGER StrToLong IN Shlwapi STRING lpSrc
 
= _show("0")
= _show("1")
= _show("abc")
= _show("54")
= _show("0x100")
= _show("2001")
= _show("2 * 3")
= _show("3.14")
 
PROCEDURE _show(cSrc)
    ? cSrc, StrToInt(cSrc), VAL(cSrc)
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
296 bytes  
Created: 2001-08-15 12:00:00  
Modified: 2012-09-25 12:36:49  
Visits in 7 days: 85  
Listed functions:
StrToInt
Printer friendly API declarations
My comment:
Native TryParse in C# works a few time faster than the StrToIntEx. But the latter"s flags are less complex that the NumberStyles flags.
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.180.187)
7 sec.Function: 'GetWindowDC'
1.92 hrs.Example: 'Retrieving the System Time adjustment'
3.76 hrs.Function: 'sendto'
Function group: 'Windows Sockets 2 (Winsock)'
 Function: 'UrlEscape'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
4.72 hrs.Example: 'GDI+: Drawing a Pie Chart'
 Example: 'Reading list of folders and files on FTP server'
Language: 'C#'
6.78 hrs.Example: 'Enumerating files opened on the network'
12.12 hrs.Example: 'Using named pipes for interprocess communication'
 Example: 'How to view icons stored in executable files (Icon Viewer) - II'
15.49 hrs.Function: 'StrDup'
Google
Advertise here!