Difference between revisions of "Val"
From Lazarus wiki
Jump to navigationJump to search (link to system unit reference, remove category included by Template:Val) |
|||
Line 10: | Line 10: | ||
− | + | == see also == | |
+ | * {{Doc|package=RTL|unit=system|identifier=val|text=<syntaxhighlight lang="pascal" enclose="none">system.val</syntaxhighlight>}} | ||
* [[Str]] | * [[Str]] | ||
− | |||
− |
Revision as of 22:03, 7 November 2018
│
Deutsch (de) │
English (en) │
русский (ru) │
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);