[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
STR Convert Number to String pp 70
Syntax: Str (NumVar:Parm,StrVar) ;
Type: String
Form: Procedure
Purpose: Convert numeric value of NumVar to a string in StrVar.
Notes: Parm is a Write formatting parm and determines the format of the
created string.
----------------------------------------------------------------------------
Usage:
CONST
IntVar : Integer = 1234 ;
RealVar : Real = 2.5E4 ;
VAR
StrVar : String [10] ;
BEGIN
Str (IntVar :5,StrVar) ; { StrVar = ' 1234' }
Str (RealVar:9,StrVar) ; { StrVar = ' 2500' }
END.
See Also:
Write
Val
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson