Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decrement operator
Message
From
02/09/2008 07:34:54
 
 
To
02/09/2008 07:26:29
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344042
Message ID:
01344045
Views:
18
>>Hi,
>>Given:
>>private int scaleFactor = 1;
>>public int ScaleFactor
>>        {
>>            get { return scaleFactor; }
>>            set
>>            {
>>                if (value == 0)
>>                {
>>                    scaleFactor = scaleFactor == 1 ? -1 : 1;
>>                }
>>                else
>>                    scaleFactor = value;
>>            }
>>        }
Why isn't i = -1 after
int i = --ScaleFactor;
>
>Where is i ?

Sorry. Not sure what you mean. If you mean where is the 'int i = --ScaleFactor' line then it's in a button click but I don't see the relevance
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform