Forum General

Make sum of 2 value's

BorisopritBorisoprit Member ✭✭✭

I use this to compare 2 value's and then show a Alert .

int ValueTo = Convert.ToInt32(Like.Text);
            int ValueFrom = Convert.ToInt32("1");



            if (ValueTo > ValueFrom)
            {

                await DisplayAlert("Alert", "You have been alerted", "OK");

            }

But how do i make a Sum of these value's to ?

Add a + is not the way

Tagged:

Answers

  • BorisopritBorisoprit Member ✭✭✭

    This is working or is this wrong to use

    int ValueFrom = Convert.ToInt32(Like.Text);
    
    
                ValueFrom++;
                Like.Text = ValueFrom.ToString();
    
    
  • JohnHardmanJohnHardman GBUniversity admin

    @Borisoprit said:
    But how do i make a Sum of these value's to ?

    Add a + is not the way

    This is not a Xamarin.Forms question, nor even a Xamarin question. This forum is intended for Xamarin-related questions & discussions. Please post general C# questions to StackOverflow or elsewhere.

  • BorisopritBorisoprit Member ✭✭✭

    Thanks JohnHardman,

    Going to look at StackOverflow

Sign In or Register to comment.