-1

下面是一些代码的一部分,它显示了一个显示从 0 到 100 字计数器的进度的仪表,但是我不确定如何对 if 语句进行编码以显示一些文本以显示成功的计数。我尝试了 if 语句“ if gg_Progress.value = 100 ”,我知道这是错误的,有谁知道它应该说什么。谢谢

public void SetGauge(int value) {
    this.gg_Progress.setValue(value);
}


public void GaugeCheck () {

    if gg_Progress.value = 100 {

        string_Progress.setText("The number of words have been successfully counted");
    }
}
4

1 回答 1

0
if (this.gg_Progress.getValue() == 100) {
于 2010-01-05T20:18:39.217 回答