Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: retrieving the standard host name and IP address for the local machine
Drawing Windows frame controls using the DrawFrameControl function
Winsock: connecting to a news server (NNTP, port 119)
Creating the Open dialog box to specify the drive, directory, and name of a file to open
How to adjust monitor brightness (Vista, monitor with DDC support)
How to block the PrintScreen key
WAV file player
Confining Windows calculator inside the VFP main window
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
Printing text on the main VFP window
Extended MessageBox Class
Printf-style formatted text output in VFP
Shortcut Menu Class
Displaying icons in the system tray (VFP9)
How to retrieve the number of print jobs queued for the printer
Retrieving local computer and user names
Adding a background image to VFP report (VFP9, ReportListener)
Creating a mailslot
How to view icons stored in executable files (Icon Viewer)
Loading a string resource from an executable file
Reading and setting the priority class values for the current process and thread
Retrieving list of files on the FTP directory
Converting command-line string to a set of Unicode argument strings (WinNT only)
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
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: 98  
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.20.129.212)
2.73 hrs.Function: 'GetIconInfo'
Function group: 'Icon'
8.29 hrs.Function: 'ChooseFont'
10.07 hrs.Example: 'Encapsulating access to the Windows Services in a class'
12.39 hrs.Example: 'Retrieving country-specific dialing information from the Windows Telephony list of countries'
 Example: 'Retrieving information about the main VFP window'
12.77 hrs.Function: 'GetKeyState'
Function group: 'Keyboard Input'
12.78 hrs.Example: 'Retrieving a universal form for the drive-based path for a network resource'
1 day(s)Example: 'MapiSendMail class for Visual FoxPro application'
 Example: 'How to drag a Form not using its Titlebar or Caption'
 Example: 'Custom GDI+ class'
Google
Advertise here!