http://www.axaptalink.com/index.php?option=content
<http://www.axaptalink.com/index.php?option=content&task=view&id=49&Itemid=2
7> &task=view&id=49&Itemid=27
-Preston
_____
From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 11:08 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: str2map
Oh no, just when i thought i got it working...
What I can see is that the first value is not read ok.
So when the string s="1=2, 2=3, 4=5", the first container value will
be "1".
That's a bummer. I think I will have to track down the global method
str2con to see why this happens. I saw on you site that you also
have Delphi experience ;-) Didn't you wish somethimes there was an
axapta equivalent for the delphi TStringList?
Ok, but that's for pointing that out to me!
/b
--- In [EMAIL PROTECTED], Max Belugin
<[EMAIL PROTECTED]> wrote:
>
> 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
<http://us.ard.yahoo.com/SIG=129pvskps/M=298184.5584357.6650215.3001176/D=gr
oups/S=1705006764:HM/EXP=1100983246/A=2434970/R=0/SIG=11edksnhv/*http:/www.n
etflix.com/Default?mqso=60185402> click here
<http://us.adserver.yahoo.com/l?M=298184.5584357.6650215.3001176/D=groups/S=
:HM/A=2434970/rand=213260647>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

