Xamarin

I'm new to Xamarin. I am making an application that requires two editbox to receive numbers. when I click the button without typing anything in the editbox it crashes and exits. Can anyone help me with this. If someone does not type anything then appear on the screen to enter correct

Best Answer

Answers

  • C0D3NameC0D3Name USUniversity ✭✭✭

    I'd have to know more about what happens behind the scenes when the button is clicked. Can you provide your button click event/command code? I'm also not sure what you meant in your last sentence.

  • Marf183Marf183 USMember

    Sorry @JBeck my native language is Portuguese so my english is not very good . Thank you @Mabrouk these solutions that you put was very useful

  • C0D3NameC0D3Name USUniversity ✭✭✭

    No problem @Marf183 sorry I didn't understand better. I'm glad @Mabrouk had the answer you needed.

  • TireDevTireDev AUMember

    @Marf183 said:
    Sorry @JBeck my native language is Portuguese so my english is not very good . Thank you @Mabrouk these solutions that you put was very useful

    The key is to balance defensive code and efficient production times. As a general thumb rule, sit on the side of not trusting what you're writing. Add checks on the data you're working with and test whatever you're able to. Assumptions will bite you in the end. It may seem like bloat initially, but every edge case you can imagine will end up happening at some point.

Sign In or Register to comment.