none
How to split string with comma intro two strings? RRS feed

  • Question

  • Hi,

    I have this string:

    "25.2647474540001,55.3115426040001"

    which represents latitude and longitude

    How can I split it to have the address_latitude and address_longitude individually?

    Thanks,

    Jassim

    Tuesday, March 19, 2019 6:09 PM

Answers

  • For example :

    string sLatLong = "25.2647474540001,55.3115426040001";
    string[] sLatLongArray = sLatLong.Split(',');

    • Marked as answer by Jassim Rahma Tuesday, March 19, 2019 8:22 PM
    Tuesday, March 19, 2019 7:29 PM