Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  int  >  Inc(int)
int class : Inc(int) method

Description

After returning a new instance with the current value, increment the value of the caller instance by the argument.

Syntax

intInstance.Inc(int incvalue)

Arguments

ClassNameDescription
intincvalueIncrement value.

Return value

ClassDescription
intA new instance with the same value as the caller instance.

Sample code

int caller = 5;

int newInstance = caller.Inc(3);

// newInstance == 5 / caller == 8

Notes

This method is added in Ver 1.1.0.0.

Links for reference

None

Copyright © Rice All rights reserved.