Forum Cross Platform with Xamarin

How to custom result after scan QRcode

Hi I'm new here

How to custom result after scan QRcode and how to remove ;

From this

to this

Best Answer

  • YelinzhYelinzh Member, Xamarin Team Xamurai
    Accepted Answer

    Try using String.Split method to get the 'Id' and 'Email' and then custom the alert message.

    Check the code:

    string result = "Social Id = 123456 Social Email = 456789.com";
    string[] spearator = { "Social", "=" };
    var content = result.Split(spearator, 4, StringSplitOptions.RemoveEmptyEntries);
    

    Get the data you want from the split array.


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Answers

  • YelinzhYelinzh Member, Xamarin Team Xamurai
    Accepted Answer

    Try using String.Split method to get the 'Id' and 'Email' and then custom the alert message.

    Check the code:

    string result = "Social Id = 123456 Social Email = 456789.com";
    string[] spearator = { "Social", "=" };
    var content = result.Split(spearator, 4, StringSplitOptions.RemoveEmptyEntries);
    

    Get the data you want from the split array.


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Sign In or Register to comment.