neo4j 显示所有label
- 作者: 天荒地老总会明
- 来源: 51数据库
- 2020-09-30
label1.Text = sdr["Reply"] == null ? "" : sdr["Reply"].ToString();
含义:sdr["Reply"]为null时,label为空字符串(看不见了),否则为sdr["Reply"]的值。
label1.Visible = sdr["Reply"] == null ? false : true;
含义:sdr["Reply"]为null时,label1不可见,否则可见
if isnull(reply) then
label.visible=false
else
label.visible=true
end if
label属性中的默认值为空,再把label和字段捆绑就可以了呀,不过在调试时不要把label属性中默认值设置为空,不然不好找到label
含义:sdr["Reply"]为null时,label为空字符串(看不见了),否则为sdr["Reply"]的值。
label1.Visible = sdr["Reply"] == null ? false : true;
含义:sdr["Reply"]为null时,label1不可见,否则可见
if isnull(reply) then
label.visible=false
else
label.visible=true
end if
label属性中的默认值为空,再把label和字段捆绑就可以了呀,不过在调试时不要把label属性中默认值设置为空,不然不好找到label
俺可以帮你。
推荐阅读