-3
我有以下代碼爲什麼這是錯
procedure TfrmJsApplications.colMaintStylesGetContentStyle(
Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord;
AItem: TcxCustomGridTableItem; out AStyle: TcxStyle);
var
aColumn: TcxCustomGridTableItem;
aValue: Variant;
begin
inherited;
try
aColumn := Sender.FindItemByName('colApplication_Doc');
aValue := aRecord.Values[aColumn.Index];
if VarToStr(aValue) <> '' then
colMaint.Properties.Buttons[0].Caption := 'Redigere'
else
colMaint.Properties.Buttons[0].Caption := 'Opret'
except
on E:exception do
Logfile.Error('F_JsApplications.colMaintStylesGetContentStyle: ' + E.Message);
end;
在一個cxGrid一列運行。 但由於某些原因,我根本無法弄清楚行
if VarToStr(aValue) <> '' then
使功能崩潰。 我知道,這是在安勤成爲一個空值,但據我可以計算出VarToStr應該在這種情況下
「使功能崩潰」沒有多大幫助。請提供完整的錯誤消息。 – 2013-02-19 14:16:41
它實際上並沒有給出任何消息 - 它只是停止程序,並在過程DebugBreak – OZ8HP 2013-02-19 18:17:11
@ OZ8HP中顯示名爲ELowLevel的Eurekalog單元的源這仍然是我們需要知道的重要信息,以便對您有所幫助。 – 2013-02-19 19:55:38