clear()函数不起作用 [英] clear() Function does not working

查看:82
本文介绍了clear()函数不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打电话给



txtFName.clear();



它给出了错误到期清除()告诉我哪个库用于clear()

解决方案

从名称中, txtFName 似乎是一个文本框。如果是这样,那么清除它你可以使用 -

 txtFName.Text =  string  .Empty;  //  或只是 





如果 txtFName 列表数组词典然后它完全正常,因为 Clear()可供他们使用。



希望,它有帮助:)


txtFName.clear()适用于windows应用。



对于网络应用程序,你必须使用

txtFName.Text =;


 public void clear()
{
> txtFName.Text =;
}





你需要清理的地方只需打电话



 clear(); 





我认为它可以帮到你

< br $> b $ b或



你可以gowith

 txtFName.Text = string.Empty; 


when i call the

txtFName.clear();

it give an error due to clear() tell me which library are used for clear()

解决方案

From the name, txtFName seems to be a Textbox. If it is so then to clear it you can use-

txtFName.Text=string.Empty; //or just "" 



If txtFName is a List or Array or Dictionary then it is perfectly fine as Clear() is available for them.

Hope, it helps :)


txtFName.clear() is ok for windows application.

For web application you have to use
txtFName.Text="";


public void clear()
{
>txtFName.Text="";
}



atwhich place u need to clear just call

clear();



I think it may help you

or

you may gowith

txtFName.Text=string.Empty;


这篇关于clear()函数不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆