Revision [21148]

This is an old revision of KeyPgStr made by fxm on 2016-03-13 11:07:34.

 

STR


Returns a string representation of a number, boolean or Unicode character string

Syntax:
Usage:
result = Str[$]( number )
or
result = Str( string )

Parameters:
number
Numeric expression to convert to a string.
string
String expression to convert to a string.

Description:
Str converts numeric variables to their string representation. Used this way it is the String equivalent to Wstr applied to numeric variables, and the opposite of the Val function, which converts a string into a number.

Str converts boolean variables to their string representation "false" / "true".

Str also converts Unicode character strings to ASCII character strings. Used this way it does the opposite of Wstr. If an ASCII character string is given, that string is returned unmodified.

Examples:
Dim a As Integer
Dim b As String
a = 8421
b = Str(a)
Print a, b


Dialect Differences:
Platform Differences:
Differences from QB:
See also:
Back to Converting Data Types
Back to String Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode