摘要:
Default是936 (ANSI/OEM - 简体中文 GBK) Memo1->Lines->SaveToFile(FileName,TEncoding::UTF8); Memo1->Lines->WriteBOM=false; //utf8 BOM gb2312,它的代码页是936 uses S
阅读全文
posted @ 2015-02-06 09:33
lypzxy
阅读(2755)
推荐(0)
摘要:
SAFEARRAY SafeArrayCreate SafeArrayDestroy // Specify the bounds: // -- dim. count = 2 // -- element count = 8 for each dimension // -- lo...
阅读全文
posted @ 2015-02-06 09:21
lypzxy
阅读(260)
推荐(0)
摘要:
System::Sysutils::TStringBuilder *sb = new TStringBuilder; sb->Append("ww"); sb->AppendLine(); sb->Append("hello"); Caption = sb->ToString(); delete s
阅读全文
posted @ 2015-02-05 19:34
lypzxy
阅读(2140)
推荐(0)
摘要:
日期格式、货币格式等 Date DateFormat DecimalSeparator FormatSettings FormatSettings.DateSeparator='-'; 控制面板的日期格式与代码不一致,代码里有拼接的日期字符串,所以用下面的方式处理,只识别这一种格式的日期。 //至少
阅读全文
posted @ 2015-02-05 19:27
lypzxy
阅读(428)
推荐(0)
摘要:
OleVariant ArrayDimCount OleVariant; System.Variants.hpp 判断OleVariant 是否为空 System::OleVariant ov if( !ov.IsNull() ) procName= ov; 还可以这样 System::OleVar
阅读全文
posted @ 2015-02-05 16:21
lypzxy
阅读(526)
推荐(0)
摘要:
https://community.embarcadero.com/index.php/blogs/entry/firedac-in-memory-dataset-tfdmemtable ClientDataSet FieldDefs Add Field CreateDataSet 动态创建字段 T
阅读全文
posted @ 2015-02-04 15:24
lypzxy
阅读(2831)
推荐(0)
摘要:
From http://www.itnose.net/detail/6006569.htmlDelphi 和 C++Builder 2014年及以后技术路线图2014-03-08 18:47 RAD Studio, Delphi 和 C++Builder 2014年及以后技术路线图By: Embar...
阅读全文
posted @ 2015-02-04 09:20
lypzxy
阅读(296)
推荐(0)
摘要:
lookup->ADOQuery->Connection = DataModule1->ADOConnection1; lookup->ADOQuery->SQL->Text = "select id,Name,PYCode from T where uf=1"; lookup->ADOQuery...
阅读全文
posted @ 2015-02-03 16:21
lypzxy
阅读(209)
推荐(0)
摘要:
//FireDAC FDStoredProc1->StoredProcName = "myReport1"; FDStoredProc1->Prepare(); FDStoredProc1->Params->ParamByName("@dt1")->Value = "2001-...
阅读全文
posted @ 2015-02-03 12:02
lypzxy
阅读(899)
推荐(0)
摘要:
DescriptionOften when manipulating datasets with similar structures, you need to copy the records from one dataset to another.E.g. you may have fetche...
阅读全文
posted @ 2015-02-03 11:30
lypzxy
阅读(563)
推荐(0)
摘要:
if (ADOQuery1->UpdateStatus() == usUnmodified) return;ADOQuery1->UpdateBatch(arAll);UpdateStatus只能判断当前记录(当前行)的状态,不能判断整个记录集的状态啊.ClientDataSet1控件有Change...
阅读全文
posted @ 2015-02-03 10:03
lypzxy
阅读(333)
推荐(0)
摘要:
procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn);begin if Button = nbInsert then begin Table1.Append; abort; endend;或者:proced...
阅读全文
posted @ 2015-02-02 14:16
lypzxy
阅读(345)
推荐(0)
摘要:
选择器例子例子描述CSS.class.intro选择 class="intro" 的所有元素。1#id#firstname选择 id="firstname" 的所有元素。1**选择所有元素。2elementp选择所有 元素。1jQuery 元素选择器jQuery 使用 CSS 选择器来选取 HTM...
阅读全文
posted @ 2015-01-29 10:04
lypzxy
阅读(123)
推荐(0)
摘要:
打开VS菜单->工具->选项->文本编辑器->文件扩展名,右侧输入html,再下拉列表选HTML(Web窗体)编辑器,点添加,确定。第二条是彻底解决VS2013不能编辑HTML文件的问题。但是这样后编写html文件,不能 ctrl+k,Ctrl+G 在PageInspector中查看了,只能用在浏览...
阅读全文
posted @ 2015-01-28 14:42
lypzxy
阅读(190)
推荐(0)
摘要:
关机 shutdown -s -t 0 重启 shutdown -r -t 0 重启电脑windows 立即关机 shutdown -s 三十分钟后关机 shutdown -s -t 30 举例说明一:要在 晚上23:00准时关机你可以输入如下命令:at 23:00 shutdonw -s举例说明二
阅读全文
posted @ 2015-01-27 17:26
lypzxy
阅读(1433)
推荐(0)