上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 76 下一页
摘要: 1. 在“创建”选项卡中,单击“其他”组中的“查询设计”。 2. 单击“显示表”对话框中的“关闭”,而不添加任何表或查询。 3. 在“设计”选项卡中,单击“查询类型”工作组中的“联合”。 4. 单击“显示/隐藏”工作组中的“属性表”以显示查询的属性表。5. 在“SQL 传递查询”窗口中,键入您的传递... 阅读全文
posted @ 2014-09-22 13:25 海乐学习 阅读(470) 评论(0) 推荐(1)
摘要: select * from 表 where datediff("d",日期型的字段,#2008-09-01#)=0或select * from 表 where 日期型的字段 >= #2008-09-01 00:00:00# and 日期型的字段 <= #2008-09-01 23:59:59#将单... 阅读全文
posted @ 2014-09-22 13:22 海乐学习 阅读(387) 评论(0) 推荐(0)
摘要: 如果不想让DataGridView自动生成与数据源对应的列,只需要把属性AutoGenerateColumns设为false即可。需要注意: 在界面设计的属性窗口中是看不到AutoGenerateColumns属性的,需要在代码中设定,比如在窗口的构造函数中设定:dataGridView1.Auto... 阅读全文
posted @ 2014-09-20 21:58 海乐学习 阅读(7169) 评论(0) 推荐(1)
摘要: "开始"->"程序"->Microsoft SQL Server 2008->配置工具->SQL Server配置管理器->SQL Server服务:只保留SQL Server(MSSQLSERVER)(正在运行),其他的全部设为停止。重启wamp服务器成功! 阅读全文
posted @ 2014-09-18 11:04 海乐学习 阅读(1792) 评论(0) 推荐(0)
摘要: //弹出对话框-------------------------------------------------- private void openDialog(String strMsg, String strTitle){ new AlertDialog.Builder(this) .setTitle(strTitle) .setMessage(strMsg) .setPositiveButton("确认", new DialogInterface.OnCl... 阅读全文
posted @ 2014-03-06 00:37 海乐学习 阅读(2662) 评论(0) 推荐(0)
摘要: import android.net.Uri;//调用Android系统API发送短信 Uri uri = Uri.parse("smsto:" + strSmsPhone_value.toString()); //收短信的电话号码 Intent intent = new Intent(Intent.ACTION_SENDTO, uri); intent.putExtra("sms_body", strSmsMsg);//短信内容 startActivity(intent); AndriodManifest.xml 中加入 发短信的权限 //加上此句 阅读全文
posted @ 2014-03-06 00:36 海乐学习 阅读(262) 评论(0) 推荐(0)
摘要: import java.util.Calendar; import android.widget.DatePicker; import android.app.DatePickerDialog; //日期对话框的标记 常量 private static final int DATE_DIALOG_ID = 1; private static final int SHOW_DATAPICK = 0; //日期变量 private int mYear; private int mMonth; private int ... 阅读全文
posted @ 2014-03-06 00:35 海乐学习 阅读(888) 评论(0) 推荐(0)
摘要: private Spinner m_spiModel = null; //产品型号m_spiModel = (Spinner) findViewById(R.id.spiModel);//产品型号String strModel_init="A型,B型,C型,D型";String[] arrModel =strModel_value.split(",");//转换 数组ArrayAdapter adapter;//数组 配置器 下拉菜单赋值用//将可选内容与ArrayAdapter连接起来 adapter = new ArrayAdapter(this,a 阅读全文
posted @ 2014-03-06 00:33 海乐学习 阅读(12264) 评论(0) 推荐(0)
摘要: //定义SharedPreferences share = getSharedPreferences("perference",MODE_PRIVATE);//取值String strBuyMall_value=share.getString("buymall_value","");//赋值Editor editor = share.edit();editor.putString("buymall_value", strBuyMall_init);editor.commit();//设置 阅读全文
posted @ 2014-03-06 00:32 海乐学习 阅读(254) 评论(0) 推荐(0)
摘要: 15898146863 //取值 String strSmsPhone=getResources().getString(R.string.smsphone_init) 阅读全文
posted @ 2014-03-06 00:31 海乐学习 阅读(1392) 评论(0) 推荐(0)
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 76 下一页