小编mos*_*she的帖子

php T_STRING错误

在mantis中配置自定义字段时,我收到此错误消息,任何想法

解析错误:语法错误,第3行的C:\ wamp\www\MyProj\custom_strings_inc.php中的意外T_STRING

代码是

<?php
if( lang_get_current() == 'german' ) {
    $defect_impact = 'Defect Impact'; #// German translation of Defect Impact
    $defect_type =  'Defect Type'; #// German translation of Defect Type
    $phase_of_origin =  ’Phase Of Origin’; #// German translation of Phase Of Origin
}else{
# Default (use your preferred language as the default)
    $defect_impact = 'Defect Impact'; // German translation of Defect Impact
    $defect_type =  'Defect Type'; // German translation of Defect Type
    $phase_of_origin =  'Phase Of Origin'; // German …
Run Code Online (Sandbox Code Playgroud)

php mantis

2
推荐指数
1
解决办法
289
查看次数

单声道C#MessageBox没有响应

我是monodevelop的初学者,我试图根据按钮点击显示一个消息框.代码工作正常,除非显示if/else语句下的bex消息,否则我无法关闭它.单击"确定"或"x"按钮不会关闭MessageBox

namespace SampleGtkProj
{
    public partial class First : Gtk.Window
    {
        protected virtual void buttonClicked (object sender, System.EventArgs e)
        {
            MessageBox.Show(entry1.Text);
            if(File.Exists(entry1.Text)) {
                MessageBox.Show("File Exists: test passed");}
            else {
                MessageBox.Show("FIle DOes NOt exist test failed");}
        }

        public First() : base(Gtk.WindowType.Toplevel)
        {
            this.Build ();
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

c# mono messagebox

1
推荐指数
1
解决办法
1619
查看次数

标签 统计

c# ×1

mantis ×1

messagebox ×1

mono ×1

php ×1