28 th Jun 2022 22:01:50
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
Type Conversion Functions Type Conv. Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

CStr Function - Visual Basic 6.0 (VB 6.0)

Returns an expression that has been converted to a Variant of subtype String.
Syntax:
CStr(expression)
Parameter Description
expression Required. The expression argument is any valid expression.

Return Data type:
String
Example:
Statement Result Remark
CStr(1) 1  
CStr(1.5) 1.5  
CStr(0) 0  
CStr(-1) -1  
CStr(123.5678) 123.5678  
CStr(5>10) False  
CStr(5<=10) True  
CStr(Date) Current Date (System Short Date Format)
CStr(Err) Error Number = Err.Number
CStr(unknown) 0 uninitialized Variable
CStr(Null) Error Invalid use of Null
CStr("abcd")   Empty String
CStr(True) True True - Non Zero
CStr(False) False False - Zero
Go to top

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





© 2021 Chennaiiq.com. All Rights Reserved.

5006