none
Best way to parse parameters RRS feed

  • Question

  • Hey guys, 

     I have parameters returned in the following format "@startDate='1/2/2005'@endDate='12/12/2006'@value1='test'@value2='test3'"

    my questions is whats the best way to parse all the values out. Basically i jus wanna get each value out such as ie. '1/2/2005' and assign then to another variable i just created. So wats the best way i could parse this?

    Thanks
    Wednesday, November 23, 2005 7:51 PM

Answers

  • I see 2 options:

    either you parse the string yourself.  The string.Split() method would be of help here to split the string in different parts.

    either you use a 3rd-party parser.  If you provide that with the syntax of your return value it can do the parsing for you.   I like this one a lot (http://cis.paisley.ac.uk/crow-ci0/CSTools47.zip)

    Marc


    Wednesday, November 23, 2005 9:45 PM