Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Enumerating data formats currently available on the clipboard
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Winsock: sending email messages (SMTP, port 25)
Mapping and disconnecting network drives
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Custom GDI+ class
Converting Unicode data from the Clipboard to a character string using a given code page
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
How to display the Properties dialog box for a file (ShellExecuteEx)
How to download a file from the FTP server using FtpGetFile
Disk in drive A:
Detecting changes in connections to removable drives (VFP9)
Enumerating network resources
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to play AVI file on the _screen
Retrieving the name of the network resource associated with a local device
Using EnumPrinters function to enumerate locally installed printers
Custom FTP Class for Visual FoxPro application
Custom HttpRequest class (WinHTTP)
Creating a console window for Visual FoxPro application
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Deleting files into the Recycle Bin
Using File Mapping for enumerating files opened by Visual FoxPro
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: 80  
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 (107.21.186.38)
4 sec.Function: 'MAPISendDocuments'
5.13 hrs.Example: 'Pocket PC: creating new database in the Object Store and copying Contacts Database records into it'
 Function: 'GetComputerObjectName'
Function group: 'System Information'
 Example: 'GDI+: Creating thumbnails to preview images in a directory'
13.16 hrs.Example: 'Comparing dimensions of the VFP main window with _SCREEN properties'
 Example: 'Displaying printer-properties Property Sheet for the specified printer'
14.09 hrs.Example: 'Sending a standard message with one or more attached files using default email client'
22.23 hrs.Example: 'Verifying a file using the Authenticode policy provider'
 Function: 'GdipSetPageScale'
Function group: 'GDI+ Graphics'
22.45 hrs.Example: 'Starting a dialog box for connecting to network resources (mapping network drive)'
Google
Advertise here!