24 th Nov 2014 13:39:26
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
IP 2 Location
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2013 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 9150 170 357.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Str Function Str Function
Type Conversion Functions Type Conv. Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

Val Function - Visual Basic 6.0 (VB 6.0)

Returns the numbers contained in a string as a numeric value of appropriate type.
Syntax:
Val(string)
Parameter Description
string Required. Any valid string expression.

Return Data type:
Variant (Integer, Long, Single, Double)
Example:
Statement Result Remark
Val("1") 1  
Val("1.5") 1.5  
Val("987654") 987654  
Val("   1 2 3 ") 123  
Val("a123") 0  
Val("123a456") 123  
Val("123,456") 123  
Val(5 > 10) 0  
Val(5 < 10) 0  
Val("&HFF") 255 Hexadecimal to Decimal Convert
Val("&O10") 8 Octal value to Decimal Convert
Val(Null) Null  
Val("abcd") 0  
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  Val Function in VB Script (VBS)
  Val Function in JScript (JS)
  Val Function in ASP (Active Server Page)
  Val Function in PHP Script
  Val Function in MS-Access
  Val Function in MS SQL Server
  Val Function in Oracle
  Val Function in C Language
  Val Function in C++ Language
  Val Function in Foxpro
  Val Function in Fortran
  Val Function in MS Excel Sheet
Go to top
 





© 2005 - 2007 Chennaiiq.com. All Rights Reserved.

Our Sites: ChennaiIQ.com || Tamil Calendar || Tamil Panchangam || KP Astrology
Our Blogs: Tamil Calendar



95