5 th Apr 2020 01:39:13
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Right Function Right Function
Len Function Len Function
Mid Function Mid Function
String Functions String Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

Left Function - Visual Basic 6.0 (VB 6.0)

Returns a specified number of characters from the left side of a string.
Syntax:
Left(string,length)
Parameter Description
string Required. Any valid string expression.
length Required. Numeric expression indicating how many characters to return.
Return Data type:
String
Example:

Statement Result Remark
Left("abcd", 2) ab  
Left("abcd", 0)   Empty String
Left("abcd", 5) abcd  
Left("abcd", 4) abcd  
Left("abcd", -1) Error Invalid procedure call or argument
Left("abcd", null) Error Invalid use of Null
Left(null, 2) Null  
Left(True, 3) Tru  
Left(False, 3) Fal  
Left("abcd", True) Error Invalid procedure call or argument
Left("abcd", False)   Empty String
Left(unknown, 3)   Empty String
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  Left Function in VB Script (VBS)
  Left Function in JScript (JS)
  Left Function in ASP (Active Server Page)
  Left Function in PHP Script
  Left Function in MS-Access
  Left Function in MS SQL Server
  Left Function in Oracle
  Left Function in C Language
  Left Function in C++ Language
  Left Function in Foxpro
  Left Function in Fortran
  Left 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



10229