Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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



  • BorisopritBorisoprit Member ✭✭✭

    This is working or is this wrong to use

    int ValueFrom = Convert.ToInt32(Like.Text);
                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.