Val

From Lazarus wiki
Revision as of 13:49, 23 May 2013 by The1 (talk | contribs) (Created page with "Procedure '''Val''' converts the String value '''S''' to its numeric representation. S is a string-type expression; it must be a sequence of characters that form a signed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Procedure Val converts the String value S to its numeric representation.

S is a string-type expression; it must be a sequence of characters that form a signed whole number. V is an integer-type or real-type variable. Code is a variable of type Integer. If the string is invalid, the index of the offending character is stored in Code; otherwise, Code is set to zero.


Declaration

procedure Val(S; var V; var Code: Integer);


See also: