

https://docwiki.embarcadero.com/RADStudio/Sydney/en/Live_Templates
添加Jump Point跳转点
<?xml version="1.0" encoding="utf-8" ?> <codetemplate xmlns="http://schemas.borland.com/Delphi/2005/codetemplates" version="1.0.0"> <template name="add1" invoke="none"> <description> </description> <author>涂磊</author> <point name="low"> <text>your_table</text> <hint>你的表名</hint> </point> <code language="Delphi" delimiter="|"><![CDATA[ var i: Integer; FDQuery1.Open('SELECT * FROM |low|'); while not FDQuery1.Eof do begin // 处理每一行 for i := 0 to FDQuery1.FieldCount - 1 do begin // 输出字段名和值 ShowMessage(FDQuery1.Fields[i].FieldName + ': ' + FDQuery1.Fields[i].AsString); end; FDQuery1.Next; end; FDQuery1.Close; ]]> </code> </template> </codetemplate>


浙公网安备 33010602011771号