Hello byteway_so,

�������, 19 ������ 2004 �., you wrote:


b> str s = "key1=value1, key2=value2, key3=value3, key4=value4,
b> key5=value5";
b> Container c;
b> str keypair, key, value;
b> int i, ipos;
b> ;
b> c = str2con(s);
b> for (i=1; i < conlen(c)+1 ; i++)
b> {
b> keypair = strRTrim(strLTrim(ConPeek( c, i )));
b> ipos  = strScan(keypair, "=", 1, strLen(keypair));
b> key = substr(keypair, 1, ipos-1);
b> value = substr(keypair, ipos+1, strLen(keypair));
b> info(strFmt("Key: %1, Value: %2", key, value));
b> }

AFAIR  str2con  is  trying  to convert splitted string parts to more special
types for example, try your code with
str s = "1=2, 2=3"

--
Best regards,
Max                           

http://belugin.newmail.ru
ICQ:9406811





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to