delphi的这个 & 字符串要怎么输出啊
'http://localhost/test.asp?user='+edt1.Text+#38+'pwd='+edt2.Text+#38+'test=';#38加上去了没用

解决方案 »

  1.   

    '?'==38?
    哦是'&'?
    'http://localhost/test.asp?user='+edt1.Text+'&'+'pwd='+edt2.Text+'&'+'test=';
      

  2.   

    估计楼主的问题不在这“&”个字符上
      

  3.   

    含一个&就输入两个&&,被转义了
    输出  abcd&123,   
    showmessage(abcd&&123);
      

  4.   

    'http://localhost/test.asp?user='+edt1.Text+'&pwd='+edt2.Text+'&test=';
    这样就可以了。
      

  5.   

    showmessage 显示 & 不是害人嘛。字符串是没错,错的是showmessage这函数会转义显示&如果你的 & 不是用在 showmessage 上面的。尽管直接用 + '&' +