API
Version 7.x > API > Key Value pair View modes: 
User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/15/2013 10:27:08 PM
   
Key Value pair
Is there a built-in method I could use to parse and store key/value pairs entered in a textbox?

For instance:
1;Name 1
2;Name 2
3;Name 3

I want to parse those values into key/values but how do I determine the next pair? Environment.Newline? Is that the separator for the pairs?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/16/2013 2:32:00 AM
   
RE:Key Value pair
Hello FroggEye,

Actually no method is available for that but you can simply create your own... but a whole parsing is explicitly "primitive".
The values are separated by semicolumns and each pair must be placed on a new line.

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/16/2013 7:18:28 AM
   
RE:Key Value pair
Again, thanks Martin. Was simply looking to use the API for something I assumed you might already be doing.