<< Prev        Next >>

ID : 286

Str

Function

To convert numeric value data into string type data to return.

Syntax

Str(formula)

Guaranteed entry

Formula
Designate double precision real number type data.

Return value

Return string type data.

Description

Numeric value data are converted into string type data and returned.

Related Terms

Val, Bin, Hex

Attention

If the return value is positive, a space ( ) is put on the top.

Example

'!TITLE "Conversion from Numeric Value to String"
' Convert a numeric value 20 into a string
Sub Sample_Str

  Dim aaa As Integer
  Dim bbb As String

  aaa = 20

  ' Convert 20 into a string
  bbb = Str( aaa )

  ' Display "20" on the message output window
  PrintDbg bbb

End Sub

ID : 286

<< Prev        Next >>