Adding components to a DBGrid
內容相當豐富,而且篇篇精彩!錯過可惜!
項目 | VB.NET | C#引用命名空間 | 備註 |
1 | MY.Application | Microsoft.VisualBasic.ApplicationServices; | 應用程序相關 |
2 | My.Computer | Microsoft.VisualBasic.Devices.Computer | 計算機相關 |
3 | My.Forms | Form窗體實體化 | windows Form相關 |
4 | MY.Log | Microsoft.VisualBasic.Logging | 記錄文件相關 |
5 | MY.Resources | Namespace命名空間.Properties.Resources | 資源文件相關 |
6 | MY.User | Microsoft.VisualBasic.ApplicationServices.User | 用戶相關 |
7 | MY.Settings | Namespace命名空間.Properties.Settings | 設置文件相關 |
8 | My.WebServices | Web Service實體化 | Web Service相關 |
procedure TForm1.AddNewDataClick(Sender: TObject); begin with ClientDataSet1 do begin Append; Fields.Fields[0].AsString := Edit_AddTest0.Text; Fields.Fields[1].AsString := Edit_AddTest1.Text; Fields.Fields[2].AsString := Edit_AddTest2.Text; Post; end; end;
import mx.core.UIComponent; import mx.events.FlexEvent; private var spr:Sprite; private var uic:UIComponent; protected function init(event:FlexEvent):void { // TODO Auto-generated method stub spr = new Sprite; uic = new UIComponent; spr.graphics.beginFill(0xFFFFFF); spr.graphics.drawCircle(100, 100, 100); spr.graphics.endFill(); uic.addChild(spr); addChild(uic); }
<script type="text/javascript"> var swfVersionStr = "10.0.0"; var xiSwfUrlStr = "playerProductInstall.swf"; var flashvars = {}; flashvars.firstname = "Nick"; flashvars.lastname = "Danger"; var params = {}; params.quality = "high"; params.bgcolor = "#ffffff"; params.allowscriptaccess = "sameDomain"; var attributes = {}; attributes.id = "TestProject"; attributes.name = "TestProject"; attributes.align = "middle"; swfobject.embedSWF( "FlashVarTest.swf", "flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); swfobject.createCSS("#flashContent", "display:block;text-align:left;"); script>
var first_name : String = FlexGlobals.topLevelApplication.parameters.firstname; var last_name : String = FlexGlobals.topLevelApplication.parameters.lastname;
在Flash Builder 4里用Flex 4 SDK开发时,如果还使用了Application.application,则会有提示这是Flex 3 SDK的写法。
中文亂碼的畫面 |
未格式化時的SQL |
格式化後的SQL |
更棒的是,這個版本就支援UNICODE了!
工作上經常會先將 T-SQL 測到沒有問題後,再謄到 Delphi 中,此時會進行字串相加的串連工作,然而這工作如果文字少還算簡單,如果量大時,難免會出現漏打的情形,這時 SQL Pretty Printer 也支援 SQL 指令碼轉成其它如 C#、Pascal 相容的字串相加程式碼:
SQL Pretty Printer 有將 SQL 組成其它語言字串相加的功能 |
SQL Pretty Printer 是付費軟體,一個LICENSE $50,但為你省下的時間絕對超過 $50 的價值!
向你推薦!
咦!出錯了! |
正解! |
不只是單純的Memo,還可以搭配Rich Text |
剛剛的一行SQL轉成Delphi String型態,超方便! |
<s:layout> <s:BasicLayout/> </s:layout>
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="600" minHeight="400"> <s:layout> <s:BasicLayout/> </s:layout> <s:VGroup width="50%" height="50%" horizontalAlign="center" verticalAlign="middle" horizontalCenter="0" verticalCenter="0"> <s:Label text="label"/> <s:Button label="button"/> </s:VGroup> <s:Group width="20%" height="20%" horizontalCenter="0" verticalCenter="100"> <s:Button label="g button"/> </s:Group> </s:Application>
' RefersToRange 屬性範例 ' 此範例顯示作用中工作表列印範圍中的列數和欄數。 p = Names("Print_Area").RefersToRange.Value MsgBox "Print_Area: " & UBound(p, 1) & " rows, " & _ UBound(p, 2) & " columns"
Sub Macro2() Columns("D:D").Select Selection.Delete Shift:=xlToLeft End Sub