转载: http://www.cnblogs.com/linyechengwei/archive/2008/11/10/1330819.html (1)这两个方法的最大不同是它们对null值的处理方法: Convert.ToInt32(null)会返回0而不会产生任何异常,但int.Parse(nu...
分类:
其他好文 时间:
2015-01-29 01:21:46
阅读次数:
118
1、使用insert方法插入记录
SQLiteDatabase的insert方法的签名为long insert(String table,String nullColumnHack,ContentValues values),这个插入方法的参数说明如下:
table:代表想插入数据的表名。
nullColumnHack:代表强行插入null值的数据列的列名。
values:代表一行记录的数...
分类:
数据库 时间:
2015-01-28 22:38:25
阅读次数:
213
Android 非UI线程中更新UI
runOnUiThread(new Runnable()
{
public void run()
{
onDown(null);
}
});...
分类:
移动开发 时间:
2015-01-28 21:29:22
阅读次数:
226
Oracle数据库的表格怎样才能想MySQL一样整数主键拥有自动增加功能呢? 前提你得创建一个表create table tab{ id number not null primary key,--主键 . . . } ...
分类:
数据库 时间:
2015-01-28 21:22:16
阅读次数:
267
public partial class Form1 : Form { //连接信息对象 public ConnectionInfo connInfo = null; //连接对象 Connection newTcpConnection...
分类:
其他好文 时间:
2015-01-28 21:22:09
阅读次数:
209
FileTransferClient ftpClient = null; try { ftpClient = new FileTransferClient(); // set remote host ftpClient....
分类:
编程语言 时间:
2015-01-28 21:08:10
阅读次数:
187
1 // 查询联系人数据 2 cursor = getContentResolver().query( 3 ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 4 null, null, null, null); 5 while (cursor.....
分类:
其他好文 时间:
2015-01-28 21:06:24
阅读次数:
270
public partial class Form1 : Form { //连接信息类 public ConnectionInfo connInfo = null; //连接类 Connection newTcpConnection; ...
分类:
其他好文 时间:
2015-01-28 21:05:45
阅读次数:
281
只能开启一个子窗体 例如 有form1,form2form1中public static form2 f2; if (f2 == null) { f2 = new form2();f2.Show(); } ...
/** * 等待层 */ setWaitPanel:function(){ if(document.getElementById("loader_container")!=null){ ...
分类:
其他好文 时间:
2015-01-28 17:36:03
阅读次数:
243