From Clomosy Docs

No edit summary
No edit summary
 
Line 27: Line 27:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|title=Using Inc in Clomosy - Clomosy Docs}}
{{#seo:|description=Use the Inc procedure in Clomosy to increment an integer variable by one.}}
{{#seo:|description=Use the Inc procedure in Clomosy to increment an integer variable by one.}}

Latest revision as of 15:03, 24 December 2024

The Inc procedure increments the ordinal variable parameter passed to it.

Example

 var
   Number    : Integer;
 
 {
   Number = 23;
   ShowMessage('Number : '+IntToStr(Number));
   Inc(Number);
   ShowMessage('Number+1 : '+IntToStr(Number));
 }

Output:

See Also