Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Threading.Tasks;
- using Xamarin.Forms;
- namespace Exercise2
- {
- // Learn more about making custom code visible in the Xamarin.Forms previewer
- // by visiting https://aka.ms/xamarinforms-previewer
- [DesignTimeVisible(false)]
- public partial class MainPage : ContentPage
- {
- public MainPage()
- {
- InitializeComponent();
- }
- public static class myVariables
- {
- public static string myNewText = "";
- public static int myX;
- }
- private object txtChar;
- private object txtNum;
- private void submit_clicked(object sender, EventArgs e)
- {
- var myValue = txtChar.Text;
- var myValue2 = txtChar2.Text;
- //var myNumber = txtNum.Text;
- //for (int i = 0; i <= Convert.ToInt32(myNumber); i++)
- for (int i=0; i <= myValue.Length - 1; i++)
- { }
- {
- myVariables.myNewText = myVariables.myNewText + myValue[i] + "\n";
- }
- DisplayAlert("Result", myVariables.myNewText, "OK");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement