05 2015 档案
Delphi webservices 传数据
摘要:数据集数据转换为XMLfunction ReplaceString(AString: string): string;begin Result := StringReplace(AString, '&', '&', [rfReplaceAll]); Result := StringRep... 阅读全文
posted @ 2015-05-31 01:14 雪夜 阅读(382) 评论(0) 推荐(0)
内存表 ClientDataSet CreateDataSet
摘要:unit Form_Main;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, Grids, DBGrids, DBClient;type ... 阅读全文
posted @ 2015-05-31 01:05 雪夜 阅读(2612) 评论(0) 推荐(0)
Delphi TClientDataSet的使用
摘要:1.TClientDataSet的基本属性和方法介绍1).FieldDefs: 字段定义列表属性开发者可通过单击属性编辑器中该属性编辑按钮,或在该控件上单击右键选择弹出菜单中的"Fields Editor"菜单进行字段编辑。设置完此属性后,实际上就相当于定义了表的结构;如果想装入已有的数据表的结构和... 阅读全文
posted @ 2015-05-31 00:32 雪夜 阅读(1513) 评论(0) 推荐(0)
Delphi 复习代码
摘要:1、取得可文件路径 Path := ExtractFilePath(Application.ExeName); //取得可执行文件路径 TXMLDocument.Create(ExtractFilePath(Application.ExeName)+ '001.xml') 2、DisableCont 阅读全文
posted @ 2015-05-31 00:30 雪夜 阅读(670) 评论(0) 推荐(0)
unit Base64Unit;
摘要:unit Base64Unit;unit Base64Unit;//Download by http://www.codefans.netinterfaceuses Classes, SysUtils; function Base64Encryption(const Input:String):... 阅读全文
posted @ 2015-05-29 00:36 雪夜 阅读(259) 评论(0) 推荐(0)
Delphi 读取 c# webservice XML的base64编码图片字符串转化图片并显示
摘要:Delphi 读取 c# webservice XML的base64编码图片字符串转化图片并显示在 开发中遇到应用c#及asp.net的在的webservice 保存图片并以xml文件形式现实出来 并用delphi调用的方法:1.c#的webservice现实见 http://www.greenso... 阅读全文
posted @ 2015-05-28 23:35 雪夜 阅读(2184) 评论(0) 推荐(0)
XML
摘要:一、使用 1) Copy the NativeXml files from the NativeXml directory into your project folder. Copy additional files in the General directory to your project... 阅读全文
posted @ 2015-05-28 12:07 雪夜 阅读(375) 评论(0) 推荐(0)
Delphi操作XML - 冰雪傲骨
摘要:Delphi操作XMl,只要使用 NativeXml。我是用的版本是4.02。NativeXML的使用方法比较简单,但是功能很强大。XE2的话,要在simdesign.inc后面加上: // Delphi XE2 / 16 {$ifdef VER230}... 阅读全文
posted @ 2015-05-28 00:41 雪夜 阅读(6284) 评论(0) 推荐(0)
.NET 框架 Microsoft .NET Framework (更新至.NET Framework4.8)
摘要:.NET 框架 Microsoft .NET Framework (更新至.NET Framework4.8) https://dotnet.microsoft.com/download/dotnet-framework 产品名称 离线安装包 .NET Framework 4.8 点击下载 .NET 阅读全文
posted @ 2015-05-27 13:38 雪夜 阅读(683) 评论(0) 推荐(0)
启用事务操作,解决批量插入或更新sqlite,mssql等数据库耗时问题
摘要:private void button1_Click(object sender, EventArgs e) { //Sqlite使用事务批量操作 极大的提高速度 DateTime starttime = DateTime.N... 阅读全文
posted @ 2015-05-26 22:38 雪夜 阅读(4502) 评论(0) 推荐(0)
C#中npoi操作Excel[版本2.0.1读写2003、2007格式]
摘要:public static void test1() { NpoiHelper np = new NpoiHelper(); DataTable dt1 = np.ReadExcel(AppDomain.CurrentDomain.BaseDirectory + "1测试数据.x... 阅读全文
posted @ 2015-05-18 11:36 雪夜 阅读(2882) 评论(0) 推荐(0)
a标签加入单击事件 屏蔽href跳转页面
摘要:综合上述,在a中调用js函数最适当的方法推荐使用:a href="javascript:void(0);" onclick="js_method()"a href="javascript:;" onclick="js_method()"a href="#" onclick="js_method();... 阅读全文
posted @ 2015-05-16 10:27 雪夜 阅读(6878) 评论(0) 推荐(1)
一个ClientDataset的Delta与XML相互转换
摘要:一个ClientDataset的Delta与XML相互转换的文章:大家都知道TClientDataSet的Delta属性保存数据集的变化,但是Delta是OleVariant类型的属性,这样如果用Delphi写Webservice,就有需要把它转成XML,特别是其他语言也要用这个Webservice... 阅读全文
posted @ 2015-05-12 09:03 雪夜 阅读(1195) 评论(0) 推荐(0)
常用正则表达式
摘要:1、判断在字符在字符串,有没有值。 public bool isExists(string str) { if (str != "") { return Regex.Match(str, "[a-eA-E]").Success; ... 阅读全文
posted @ 2015-05-09 09:58 雪夜 阅读(141) 评论(0) 推荐(0)
ASP.NET程序中常用的三十三种代码
摘要:1. 打开新的窗口并传送参数: 传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数:string a = Requ... 阅读全文
posted @ 2015-05-08 23:21 雪夜 阅读(229) 评论(0) 推荐(0)
Asp.Net Webform 常用代码
摘要:1015、ASP.Net WebForm 数据绑定 < %# %> < %= %> < % %> < %@ %> Eval("Name") 1、< %#... %>: 是在绑定控件DataBind()方法执行时被执行,用于数据控件绑定 如: < %# Container.DataItem("tit" 阅读全文
posted @ 2015-05-04 09:00 雪夜
计算地球上两个坐标点(经度,纬度)之间距离sql函数
摘要:go --计算地球上两个坐标点(经度,纬度)之间距离sql函数--作者:lordbaby--整理:www.aspbc.com CREATE FUNCTION [dbo].[fnGetDistance](@LatBegin REAL, @LngBegin REAL, @LatEnd REAL, @L... 阅读全文
posted @ 2015-05-03 00:30 雪夜 阅读(7792) 评论(1) 推荐(1)