請問c#轉成delphi語法問題 |
尚未結案
|
kartan_01
一般會員 發表:42 回覆:60 積分:20 註冊:2004-12-08 發送簡訊給我 |
原文: DataColumn dtCol = null; dtCol = new DataColumn(arrstrFunctionalArea[i]); DataColumn dtcCheck = new DataColumn("IsMandatory"); DataGridTextBoxColumn dgtb = (DataGridTextBoxColumn)DataGrid1.TableStyles[0].GridColumnStyles[0]; dtCol.DataType = Type.GetType("System.String"); dtcCheck.DataType = System.Type.GetType("System.Boolean"); DataGridTextBoxColumn dgtb = (DataGridTextBoxColumn)DataGrid1.TableStyles[0].GridColumnStyles[0]; 改寫成: var dtCol:DataColumn; dtcCheck:DataColumn; dgtb:DataGridTextBoxColumn; dtCol.GetType:=system.&Type.GetType('system.string'); dtcCheck.GetType:=system.&Type.GetType('System.Boolean'); dgtb:=(DataGridTextBoxColumn)DataGrid1.TableStyles[0].GridColumnStyles[0]; 錯誤訊息: [Error] WinForm5.pas(132): E2064 Left side cannot be assigned to [Error] WinForm5.pas(142): E2064 Left side cannot be assigned to [Error] WinForm5.pas(192): E2010 Incompatible types: 'DataGridTextBoxColumn' and 'Class reference'請問應該怎改? 因為原文有點長 如果必須我在把原文放上來 發表人 - kartan_01 於 2005/01/26 17:17:29 |
ATEIN
高階會員 發表:105 回覆:320 積分:125 註冊:2002-07-05 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |